diff --git a/.gitea/workflows/build-and-push.yml b/.gitea/workflows/build-and-push.yml index b6e23c7..5abf170 100644 --- a/.gitea/workflows/build-and-push.yml +++ b/.gitea/workflows/build-and-push.yml @@ -8,6 +8,10 @@ on: branches: - main +env: + REGISTRY: privaterepo.sitaru.org + IMAGE_NAME: ${{ gitea.repository }} + jobs: build-and-push: runs-on: ubuntu-latest @@ -21,7 +25,7 @@ jobs: - name: Log in to Gitea Container Registry uses: docker/login-action@v3 with: - registry: ${{ gitea.server_url }} + registry: ${{ env.REGISTRY }} username: ${{ gitea.actor }} password: ${{ secrets.REGISTRY_TOKEN }} @@ -29,7 +33,7 @@ jobs: id: meta uses: docker/metadata-action@v5 with: - images: ${{ gitea.server_url }}/${{ gitea.repository }} + images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} tags: | type=ref,event=branch type=ref,event=pr