From 0826e0b825918b50afb0e2711848a28f5eb2e780 Mon Sep 17 00:00:00 2001 From: f Date: Mon, 25 Sep 2023 13:33:14 -0300 Subject: [PATCH] fix: pwd is maintained across commands --- .woodpecker.yml | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/.woodpecker.yml b/.woodpecker.yml index e76c5f51..e5f6236e 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -11,16 +11,17 @@ pipeline: - "eval $(ssh-agent -s)" - "echo \"$${SSH_KEY}\" | base64 -d | ssh-add -" - "git clone . ${ALPINE_VERSION}" - - "git -C ${ALPINE_VERSION} config pull.rebase false" - - "git -C ${ALPINE_VERSION} config user.name Woodpecker" - - "git -C ${ALPINE_VERSION} config user.email ci@nulo.in" - - "git -C ${ALPINE_VERSION} remote add nulo ssh://_gitea@gitea.nulo.in:420/Sutty/gems.git" - - "git -C ${ALPINE_VERSION} checkout -B ${CI_COMMIT_BRANCH}" - - "cd ${ALPINE_VERSION} && bulk-compiler || true" - - "git -C ${ALPINE_VERSION} add built/ failed/ && git -C ${ALPINE_VERSION} commit -m \"[skip ci] built gems\" || true" - - "git -C ${ALPINE_VERSION} pull nulo ${CI_COMMIT_BRANCH}" - - "git -C ${ALPINE_VERSION} push nulo ${CI_COMMIT_BRANCH}" - - "! git -C ${ALPINE_VERSION} show HEAD | grep -q failed/" + - "cd ${ALPINE_VERSION}" + - "git config pull.rebase false" + - "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 nulo ${CI_COMMIT_BRANCH}" + - "git push nulo ${CI_COMMIT_BRANCH}" + - "! git show HEAD | grep -q failed/" secrets: - "HTTP_BASIC_USER" - "HTTP_BASIC_PASSWORD"