2021-09-29 23:22:12 +00:00
|
|
|
pipeline:
|
|
|
|
publish:
|
2023-02-04 16:30:13 +00:00
|
|
|
image: "registry.nulo.in/sutty/containers-gem-compiler:${ALPINE_VERSION}-${RUBY_VERSION}.${RUBY_PATCH}"
|
2021-09-29 23:22:12 +00:00
|
|
|
pull: true
|
|
|
|
commands:
|
2023-02-04 16:30:13 +00:00
|
|
|
- "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"
|
2021-09-29 23:22:12 +00:00
|
|
|
secrets:
|
2023-02-04 16:30:13 +00:00
|
|
|
- "HTTP_BASIC_USER"
|
|
|
|
- "HTTP_BASIC_PASSWORD"
|
|
|
|
- "SSH_KEY"
|
2021-09-29 23:22:12 +00:00
|
|
|
when:
|
2023-02-04 16:30:13 +00:00
|
|
|
branch: "antifascista"
|
|
|
|
event: "push"
|
2021-09-29 23:22:12 +00:00
|
|
|
matrix:
|
2022-08-26 20:30:41 +00:00
|
|
|
include:
|
2023-02-04 16:29:31 +00:00
|
|
|
- ALPINE_VERSION: "3.17.1"
|
|
|
|
RUBY_VERSION: "3.1"
|
|
|
|
RUBY_PATCH: "3"
|
|
|
|
- ALPINE_VERSION: "3.14.8"
|
|
|
|
RUBY_VERSION: "2.7"
|
|
|
|
RUBY_PATCH: "7"
|