43 lines
1.4 KiB
YAML
43 lines
1.4 KiB
YAML
steps:
|
|
publish:
|
|
image: "gitea.nulo.in/sutty/gem-compiler:${ALPINE_VERSION}-${RUBY_VERSION}.${RUBY_PATCH}"
|
|
pull: true
|
|
commands:
|
|
- "mkdir -p ~/.config/tea"
|
|
- "echo -e \"$${TEA}\" > ~/.config/tea/config.yml"
|
|
- "apk add --no-cache openssh-client"
|
|
- "mkdir ~/.ssh/"
|
|
- "echo \"[gitea.nulo.in]:993 ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIHgHIbf5/jkeyLMndnWlEO12DPj41YPqkmz+aIreVOsP\" >> ~/.ssh/known_hosts"
|
|
- "eval $(ssh-agent -s)"
|
|
- "echo \"$${SSH_KEY}\" | ssh-add -"
|
|
- "git clone . ${ALPINE_VERSION}"
|
|
- "cd ${ALPINE_VERSION}"
|
|
- "git config pull.rebase false"
|
|
- "git config user.name Woodpecker"
|
|
- "git config user.email ci@nulo.in"
|
|
- "git remote add nulo ssh://_gitea@gitea.nulo.in:993/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 nulo ${CI_COMMIT_BRANCH}"
|
|
- "git push nulo ${CI_COMMIT_BRANCH}"
|
|
- "! git show HEAD | grep -q failed/"
|
|
secrets:
|
|
- "HTTP_BASIC_USER"
|
|
- "HTTP_BASIC_PASSWORD"
|
|
- "SSH_KEY"
|
|
- "TEA"
|
|
when:
|
|
branch: "antifascista"
|
|
event: "push"
|
|
matrix:
|
|
include:
|
|
- ALPINE_VERSION: "3.17.4"
|
|
RUBY_VERSION: "3.1"
|
|
RUBY_PATCH: "4"
|
|
- ALPINE_VERSION: "3.18.2"
|
|
RUBY_VERSION: "3.2"
|
|
RUBY_PATCH: "2"
|
|
- ALPINE_VERSION: "3.14.10"
|
|
RUBY_VERSION: "2.7"
|
|
RUBY_PATCH: "8"
|