gems/.woodpecker.yml

38 lines
1.2 KiB
YAML
Raw Normal View History

2021-09-29 23:22:12 +00:00
pipeline:
publish:
2022-08-26 20:30:41 +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:
2021-12-23 19:21:06 +00:00
- git checkout -B ${CI_COMMIT_BRANCH}
2022-10-29 15:54:31 +00:00
- bulk-compiler || true
2022-02-15 11:45:30 +00:00
- git add built/ || true
- git add failed/ || true
2021-09-29 23:22:12 +00:00
- git config user.name Woodpecker
- git config user.email ci@nulo.in
- git remote add nulo ssh://_gitea@nulo.in:420/Sutty/gems.git
2022-02-15 11:45:30 +00:00
- git commit -m "[skip ci] built gems" || true
2021-09-29 23:22:12 +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 -
2022-09-03 17:23:06 +00:00
- git pull --rebase nulo ${CI_COMMIT_BRANCH}
2021-12-23 19:21:06 +00:00
- git push nulo ${CI_COMMIT_BRANCH}
- git show HEAD | grep -q failed/ ; test $? -ne 0
2021-09-29 23:22:12 +00:00
secrets:
- HTTP_BASIC_USER
- HTTP_BASIC_PASSWORD
- SSH_KEY
when:
branch: antifascista
event: push
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"