Pipeline branch filters and PR bases, Flux GitRepository ref, image automation checkout and push, restore-test, vmtest and bootstrap.sh. Merge right before the master -> main rename. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
30 lines
1.1 KiB
YAML
30 lines
1.1 KiB
YAML
# Builds ci/images/hermes (nousresearch/hermes-agent plus the agent's CLIs) as
|
|
# gitea.renner.uno/konairius/hermes:build.<unix-ts> and :latest.
|
|
when:
|
|
- event: push
|
|
branch: main
|
|
path:
|
|
- "ci/images/hermes/**"
|
|
- ".woodpecker/hermes-image.yml"
|
|
- event: manual
|
|
|
|
steps:
|
|
- name: build
|
|
image: registry.gitlab.com/gitlab-ci-utils/container-images/kaniko:v1.25.19-debug@sha256:7795cec509a50a71378cc2c365f55c555ee3a05834d8eb1cd2552df5e66d44d8
|
|
directory: ci/images/hermes
|
|
environment:
|
|
# registry-bot write:package PAT (konairius org secret).
|
|
GITEA_TOKEN:
|
|
from_secret: registry_bot_token
|
|
commands:
|
|
- mkdir -p /kaniko/.docker
|
|
- AUTH=$(printf '%s:%s' registry-bot "$GITEA_TOKEN" | base64 | tr -d '\n')
|
|
- printf '{"auths":{"gitea.renner.uno":{"auth":"%s"}}}' "$AUTH" > /kaniko/.docker/config.json
|
|
- TAG="build.$(date +%s)"
|
|
- |
|
|
/kaniko/executor \
|
|
--context . \
|
|
--dockerfile Containerfile \
|
|
--destination gitea.renner.uno/konairius/hermes:$TAG \
|
|
--destination gitea.renner.uno/konairius/hermes:latest
|