From 55534626fc96c261518c3fd0288daac3ecbf836f Mon Sep 17 00:00:00 2001 From: James Hackett Date: Mon, 21 Aug 2023 02:36:48 +0100 Subject: [PATCH] Fix workflow --- .github/workflows/publish.yaml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 4ce14a1..9724811 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -1,5 +1,9 @@ name: Build & Push Container +env: + REGISTRY: ghcr.io + IMAGE_NAME: ${{ github.repository }} + on: push: branches: @@ -24,7 +28,7 @@ jobs: - name: Login to GitHub Container Registry uses: docker/login-action@v2 with: - registry: ghcr.io + registry: ${{ env.REGISTRY }} username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} @@ -32,8 +36,7 @@ jobs: id: meta uses: docker/metadata-action@v4 with: - images: | - name/app + images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} tags: | type=ref,event=branch type=ref,event=pr