diff --git a/.gitea/workflows/build-push.yaml b/.gitea/workflows/build-push.yaml index bd801e3..dc7c5a8 100644 --- a/.gitea/workflows/build-push.yaml +++ b/.gitea/workflows/build-push.yaml @@ -23,7 +23,9 @@ on: default: 'all' env: - REGISTRY: git.daviestechlabs.io/daviestechlabs + # Use internal K8s service URL for container registry (runner is in-cluster) + REGISTRY: gitea-http.gitea.svc.cluster.local:3000/daviestechlabs + REGISTRY_HOST: gitea-http.gitea.svc.cluster.local:3000 NTFY_URL: http://ntfy.observability.svc.cluster.local:80 jobs: @@ -54,7 +56,7 @@ jobs: if: github.event_name != 'pull_request' uses: docker/login-action@v3 with: - registry: git.daviestechlabs.io + registry: ${{ env.REGISTRY_HOST }} username: ${{ secrets.REGISTRY_USER }} password: ${{ secrets.REGISTRY_TOKEN }} @@ -105,7 +107,7 @@ jobs: if: github.event_name != 'pull_request' uses: docker/login-action@v3 with: - registry: git.daviestechlabs.io + registry: ${{ env.REGISTRY_HOST }} username: ${{ secrets.REGISTRY_USER }} password: ${{ secrets.REGISTRY_TOKEN }} @@ -156,7 +158,7 @@ jobs: if: github.event_name != 'pull_request' uses: docker/login-action@v3 with: - registry: git.daviestechlabs.io + registry: ${{ env.REGISTRY_HOST }} username: ${{ secrets.REGISTRY_USER }} password: ${{ secrets.REGISTRY_TOKEN }} @@ -207,7 +209,7 @@ jobs: if: github.event_name != 'pull_request' uses: docker/login-action@v3 with: - registry: git.daviestechlabs.io + registry: ${{ env.REGISTRY_HOST }} username: ${{ secrets.REGISTRY_USER }} password: ${{ secrets.REGISTRY_TOKEN }}