refactor: reorder tasks, use quotes

This commit is contained in:
f 2023-02-04 13:30:13 -03:00
parent 7dec608498
commit 230a020c99

View file

@ -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"