nxtgauge-backend-rust/.woodpecker.yml
2026-04-10 21:18:27 +02:00

49 lines
1.5 KiB
YAML

when:
branch: [main, high-performance]
event: push
matrix:
SERVICE:
- gateway
- users
- companies
- job_seekers
- customers
- payments
- employees
- photographers
- makeup_artists
- tutors
- developers
- video_editors
- graphic_designers
- social_media_managers
- fitness_trainers
- catering_services
- ugc_content_creators
- cron
steps:
- name: build-and-push
image: gcr.io/kaniko-project/executor:v1.23.2-debug
environment:
REGISTRY_USERNAME:
from_secret: REGISTRY_USERNAME
REGISTRY_PASSWORD:
from_secret: REGISTRY_PASSWORD
commands:
- mkdir -p /kaniko/.docker
- echo "{\"auths\":{\"docker-registry.registry.svc.cluster.local:5000\":{\"username\":\"${REGISTRY_USERNAME}\",\"password\":\"${REGISTRY_PASSWORD}\"}}}" > /kaniko/.docker/config.json
- >-
/kaniko/executor
--context .
--dockerfile Dockerfile.simple
--destination docker-registry.registry.svc.cluster.local:5000/nxtgauge-rust-${SERVICE}:${CI_COMMIT_SHA}
--destination docker-registry.registry.svc.cluster.local:5000/nxtgauge-rust-${SERVICE}:latest
--destination docker-registry.registry.svc.cluster.local:5000/nxtgauge-rust-${SERVICE}:high-performance-latest
--build-arg SERVICE_NAME=${SERVICE}
--cache=true
--cache-repo docker-registry.registry.svc.cluster.local:5000/nxtgauge-rust-${SERVICE}-cache
--insecure
--insecure-pull
--skip-tls-verify