From 93c8d13c47759ca0cfb6cf2f97167d745cddfff1 Mon Sep 17 00:00:00 2001 From: Hornwitser Date: Sun, 18 May 2025 20:43:39 +0200 Subject: [PATCH] Remove hardcoded references to the registry --- .forgejo/workflows/build.yaml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.forgejo/workflows/build.yaml b/.forgejo/workflows/build.yaml index 8926c14..6760be6 100644 --- a/.forgejo/workflows/build.yaml +++ b/.forgejo/workflows/build.yaml @@ -1,7 +1,6 @@ on: [push] env: - REGISTRY: forge.hornwitser.no - REGISTRY_IMAGE: forge.hornwitser.no/hornwitser/builder:${{ github.ref_name }} + REGISTRY_IMAGE: ${{ vars.REGISTRY }}/${{ github.repository }}:${{ github.ref_name }} jobs: build: @@ -33,7 +32,7 @@ jobs: - name: Authenticate with registry run: | - echo "${{ secrets.REGISTRY_TOKEN }}" | buildah login ${{ env.REGISTRY }} --username runner --password-stdin + echo "${{ secrets.REGISTRY_TOKEN }}" | buildah login ${{ vars.REGISTRY }} --username runner --password-stdin - name: Build and push run: |