2026-04-15 11:22:26 +00:00
|
|
|
# Build the CI tools Docker image used by all infra pipelines.
|
|
|
|
|
# Triggers on changes to ci/Dockerfile or manual dispatch.
|
|
|
|
|
|
|
|
|
|
when:
|
2026-04-15 17:29:35 +00:00
|
|
|
- event: [push, manual]
|
|
|
|
|
branch: master
|
|
|
|
|
evaluate: 'CI_PIPELINE_VARIABLE_ISSUE_NUMBER == ""'
|
|
|
|
|
path:
|
|
|
|
|
include:
|
2026-04-15 11:22:26 +00:00
|
|
|
- 'ci/Dockerfile'
|
|
|
|
|
|
|
|
|
|
steps:
|
|
|
|
|
- name: build-and-push
|
|
|
|
|
image: woodpeckerci/plugin-docker-buildx
|
|
|
|
|
settings:
|
|
|
|
|
repo: registry.viktorbarzin.me:5050/infra-ci
|
|
|
|
|
dockerfile: ci/Dockerfile
|
|
|
|
|
context: ci/
|
|
|
|
|
tags:
|
|
|
|
|
- latest
|
|
|
|
|
- "${CI_COMMIT_SHA:0:8}"
|
|
|
|
|
platforms: linux/amd64
|
|
|
|
|
registry: registry.viktorbarzin.me:5050
|
|
|
|
|
logins:
|
|
|
|
|
- registry: registry.viktorbarzin.me:5050
|
|
|
|
|
username:
|
|
|
|
|
from_secret: registry_user
|
|
|
|
|
password:
|
|
|
|
|
from_secret: registry_password
|
|
|
|
|
|
|
|
|
|
- name: slack
|
|
|
|
|
image: curlimages/curl
|
|
|
|
|
commands:
|
|
|
|
|
- |
|
|
|
|
|
curl -s -X POST -H 'Content-type: application/json' \
|
|
|
|
|
--data "{\"text\":\"CI image built: registry.viktorbarzin.me:5050/infra-ci:${CI_COMMIT_SHA:0:8}\"}" \
|
|
|
|
|
"$SLACK_WEBHOOK" || true
|
|
|
|
|
environment:
|
|
|
|
|
SLACK_WEBHOOK:
|
|
|
|
|
from_secret: slack_webhook
|
|
|
|
|
when:
|
|
|
|
|
status: [success]
|