feat(woodpecker): use internal registry docker-registry.registry.svc.cluster.local:5000

This commit is contained in:
Ashwin Kumar 2026-04-10 17:39:41 +02:00
parent 0d25f84ed6
commit a6c88666ec

View file

@ -38,18 +38,22 @@ steps:
- name: build-and-push
image: woodpeckerci/plugin-docker-buildx:5.0.0
settings:
registry: ghcr.io
repo: ghcr.io/traceworks2023/nxtgauge-admin-solid
# Use internal registry
registry: docker-registry.registry.svc.cluster.local:5000
repo: docker-registry.registry.svc.cluster.local:5000/nxtgauge-admin-solid
dockerfile: Dockerfile
tags:
- ${CI_COMMIT_SHA}
- latest
- high-performance-latest
username:
from_secret: GHCR_USERNAME
password:
from_secret: GHCR_TOKEN
# Use Docker Hub for base images
logins:
- registry: https://index.docker.io/v1/
username:
from_secret: DOCKERHUB_USERNAME
password:
from_secret: DOCKERHUB_TOKEN
platforms: linux/amd64
# Enable layer caching
cache_from: ghcr.io/traceworks2023/nxtgauge-admin-solid:cache
cache_to: ghcr.io/traceworks2023/nxtgauge-admin-solid:cache
# Enable caching from/to internal registry
cache_from: docker-registry.registry.svc.cluster.local:5000/nxtgauge-admin-solid:cache
cache_to: docker-registry.registry.svc.cluster.local:5000/nxtgauge-admin-solid:cache