From 230a020c99a99667005c72d4d5a44c33c38995a5 Mon Sep 17 00:00:00 2001 From: f Date: Sat, 4 Feb 2023 13:30:13 -0300 Subject: [PATCH] refactor: reorder tasks, use quotes --- .woodpecker.yml | 43 ++++++++++++++++++++----------------------- 1 file changed, 20 insertions(+), 23 deletions(-) diff --git a/.woodpecker.yml b/.woodpecker.yml index 24bb4be0..5eea1762 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -1,32 +1,29 @@ pipeline: publish: - image: registry.nulo.in/sutty/containers-gem-compiler:${ALPINE_VERSION}-${RUBY_VERSION}.${RUBY_PATCH} + image: "registry.nulo.in/sutty/containers-gem-compiler:${ALPINE_VERSION}-${RUBY_VERSION}.${RUBY_PATCH}" pull: true commands: - - git checkout -B ${CI_COMMIT_BRANCH} - - bulk-compiler || true - - git add built/ || true - - git add failed/ || true - - git config user.name Woodpecker - - git config user.email ci@nulo.in - - git remote add nulo ssh://_gitea@nulo.in:420/Sutty/gems.git - - git commit -m "[skip ci] built gems" || true - - apk add --no-cache openssh-client - - mkdir ~/.ssh/ - - echo '[nulo.in]:420 ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIHgHIbf5/jkeyLMndnWlEO12DPj41YPqkmz+aIreVOsP' >> ~/.ssh/known_hosts - - eval $(ssh-agent -s) - - echo "$${SSH_KEY}" | tr -d '\r' | ssh-add - - - git pull --rebase nulo ${CI_COMMIT_BRANCH} - - git push nulo ${CI_COMMIT_BRANCH} - - git show HEAD | grep -q failed/ ; test $? -ne 0 + - "apk add --no-cache openssh-client" + - "mkdir ~/.ssh/" + - "echo \"[nulo.in]:420 ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIHgHIbf5/jkeyLMndnWlEO12DPj41YPqkmz+aIreVOsP\" >> ~/.ssh/known_hosts" + - "eval $(ssh-agent -s)" + - "echo \"$${SSH_KEY}\" | tr -d \"\\r\" | ssh-add -" + - "git config user.name Woodpecker" + - "git config user.email ci@nulo.in" + - "git remote add nulo ssh://_gitea@gitea.nulo.in:420/Sutty/gems.git" + - "git checkout -B ${CI_COMMIT_BRANCH}" + - "bulk-compiler || true" + - "git add built/ failed/ && git commit -m \"[skip ci] built gems\" ; true" + - "git pull --rebase nulo ${CI_COMMIT_BRANCH}" + - "git push nulo ${CI_COMMIT_BRANCH}" + - "git show HEAD | grep -q failed/ ; test $? -ne 0" secrets: - - HTTP_BASIC_USER - - HTTP_BASIC_PASSWORD - - SSH_KEY + - "HTTP_BASIC_USER" + - "HTTP_BASIC_PASSWORD" + - "SSH_KEY" when: - branch: antifascista - event: push - + branch: "antifascista" + event: "push" matrix: include: - ALPINE_VERSION: "3.17.1"