fix: pwd is maintained across commands
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed

This commit is contained in:
f 2023-09-25 13:33:14 -03:00
parent 63cb16d7d0
commit 0826e0b825
No known key found for this signature in database

View file

@ -11,16 +11,17 @@ pipeline:
- "eval $(ssh-agent -s)" - "eval $(ssh-agent -s)"
- "echo \"$${SSH_KEY}\" | base64 -d | ssh-add -" - "echo \"$${SSH_KEY}\" | base64 -d | ssh-add -"
- "git clone . ${ALPINE_VERSION}" - "git clone . ${ALPINE_VERSION}"
- "git -C ${ALPINE_VERSION} config pull.rebase false" - "cd ${ALPINE_VERSION}"
- "git -C ${ALPINE_VERSION} config user.name Woodpecker" - "git config pull.rebase false"
- "git -C ${ALPINE_VERSION} config user.email ci@nulo.in" - "git config user.name Woodpecker"
- "git -C ${ALPINE_VERSION} remote add nulo ssh://_gitea@gitea.nulo.in:420/Sutty/gems.git" - "git config user.email ci@nulo.in"
- "git -C ${ALPINE_VERSION} checkout -B ${CI_COMMIT_BRANCH}" - "git remote add nulo ssh://_gitea@gitea.nulo.in:420/Sutty/gems.git"
- "cd ${ALPINE_VERSION} && bulk-compiler || true" - "git checkout -B ${CI_COMMIT_BRANCH}"
- "git -C ${ALPINE_VERSION} add built/ failed/ && git -C ${ALPINE_VERSION} commit -m \"[skip ci] built gems\" || true" - "bulk-compiler || true"
- "git -C ${ALPINE_VERSION} pull nulo ${CI_COMMIT_BRANCH}" - "git add built/ failed/ && git commit -m \"[skip ci] built gems\" || true"
- "git -C ${ALPINE_VERSION} push nulo ${CI_COMMIT_BRANCH}" - "git pull nulo ${CI_COMMIT_BRANCH}"
- "! git -C ${ALPINE_VERSION} show HEAD | grep -q failed/" - "git push nulo ${CI_COMMIT_BRANCH}"
- "! git show HEAD | grep -q failed/"
secrets: secrets:
- "HTTP_BASIC_USER" - "HTTP_BASIC_USER"
- "HTTP_BASIC_PASSWORD" - "HTTP_BASIC_PASSWORD"