fix: prevent race conditions produced by ci
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
This commit is contained in:
parent
7e29dade78
commit
63cb16d7d0
1 changed files with 11 additions and 10 deletions
|
@ -10,16 +10,17 @@ pipeline:
|
||||||
- "echo \"[gitea.nulo.in]:420 ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIHgHIbf5/jkeyLMndnWlEO12DPj41YPqkmz+aIreVOsP\" >> ~/.ssh/known_hosts"
|
- "echo \"[gitea.nulo.in]:420 ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIHgHIbf5/jkeyLMndnWlEO12DPj41YPqkmz+aIreVOsP\" >> ~/.ssh/known_hosts"
|
||||||
- "eval $(ssh-agent -s)"
|
- "eval $(ssh-agent -s)"
|
||||||
- "echo \"$${SSH_KEY}\" | base64 -d | ssh-add -"
|
- "echo \"$${SSH_KEY}\" | base64 -d | ssh-add -"
|
||||||
- "git config pull.rebase false"
|
- "git clone . ${ALPINE_VERSION}"
|
||||||
- "git config user.name Woodpecker"
|
- "git -C ${ALPINE_VERSION} config pull.rebase false"
|
||||||
- "git config user.email ci@nulo.in"
|
- "git -C ${ALPINE_VERSION} config user.name Woodpecker"
|
||||||
- "git remote add nulo ssh://_gitea@gitea.nulo.in:420/Sutty/gems.git"
|
- "git -C ${ALPINE_VERSION} config user.email ci@nulo.in"
|
||||||
- "git checkout -B ${CI_COMMIT_BRANCH}"
|
- "git -C ${ALPINE_VERSION} remote add nulo ssh://_gitea@gitea.nulo.in:420/Sutty/gems.git"
|
||||||
- "bulk-compiler || true"
|
- "git -C ${ALPINE_VERSION} checkout -B ${CI_COMMIT_BRANCH}"
|
||||||
- "git add built/ failed/ && git commit -m \"[skip ci] built gems\" || true"
|
- "cd ${ALPINE_VERSION} && bulk-compiler || true"
|
||||||
- "git pull nulo ${CI_COMMIT_BRANCH}"
|
- "git -C ${ALPINE_VERSION} add built/ failed/ && git -C ${ALPINE_VERSION} commit -m \"[skip ci] built gems\" || true"
|
||||||
- "git push nulo ${CI_COMMIT_BRANCH}"
|
- "git -C ${ALPINE_VERSION} pull nulo ${CI_COMMIT_BRANCH}"
|
||||||
- "! git show HEAD | grep -q failed/"
|
- "git -C ${ALPINE_VERSION} push nulo ${CI_COMMIT_BRANCH}"
|
||||||
|
- "! git -C ${ALPINE_VERSION} show HEAD | grep -q failed/"
|
||||||
secrets:
|
secrets:
|
||||||
- "HTTP_BASIC_USER"
|
- "HTTP_BASIC_USER"
|
||||||
- "HTTP_BASIC_PASSWORD"
|
- "HTTP_BASIC_PASSWORD"
|
||||||
|
|
Loading…
Reference in a new issue