Skip to content

Commit

Permalink
fix TAGS
Browse files Browse the repository at this point in the history
  • Loading branch information
gilesknap committed Mar 6, 2024
1 parent d7a7d42 commit dbc51f4
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,10 @@ jobs:
include:
- os: ubuntu-latest
platforms: linux/amd64
name: ghcr.io/${{ github.repository_owner }}/${{ github.event.repository.name }}-${{ matrix.target }}

runs-on: ${{ matrix.os }}
env:
TAGS: ${{ matrix.name }}:${{ github.ref_name }},${{ matrix.name }}:latest
TAGS: ghcr.io/${{ github.repository_owner }}/${{ github.event.repository.name }}-${{ matrix.target }}
steps:

- name: Log in to GitHub Docker Registry
Expand All @@ -40,7 +39,7 @@ jobs:
uses: docker/build-push-action@v5
with:
target: ${{ matrix.target }}
tags: ${{ env.TAGS }}
tags: ${{ env.TAG }}:${{ github.ref_name }},${{ env.TAG }}:latest
cache-from: type=gha
cache-to: type=gha,mode=max
load: true
Expand All @@ -52,6 +51,5 @@ jobs:
if: ${{ github.event_name == 'push' && github.ref_type == 'tag' }}
uses: docker/build-push-action@v5
with:
target: ${{ matrix.target }}
tags: ${{ env.TAGS }}
tags: ${{ env.TAG }}:${{ github.ref_name }},${{ env.TAG }}:latest
push: true

0 comments on commit dbc51f4

Please sign in to comment.