Skip to content

Commit

Permalink
Fix pushing to GHCR.
Browse files Browse the repository at this point in the history
  • Loading branch information
kkrizka committed Jul 31, 2024
1 parent 729950b commit 1333fa6
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/build-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,17 +28,17 @@ jobs:
uses: docker/setup-buildx-action@v2
-
name: Login to DockerHub
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
-
name: Docker Meta
id: meta
uses: docker/metadata-action@v4
with:
images: ${{ env.REGISTRY }}/mucoll-dummy
images: ghcr.io/${{ github.repository_owner }}/mucoll-dummy
-
name: Build and Push (mucoll-spack)
id: docker_build_mucoll-spack
Expand All @@ -49,8 +49,8 @@ jobs:
file: ./${{matrix.os.dir}}/Dockerfile-spack
build-args: |
VERSION=${{ steps.meta.outputs.version }}
REPOSITORY=${{ env.REGISTRY }}
tags: ${{ env.REGISTRY }}/mucoll-spack:${{steps.meta.outputs.version}}-${{matrix.os.suffix}}
REPOSITORY=ghcr.io/${{ github.repository_owner }}
tags: ghcr.io/${{ github.repository_owner }}/mucoll-spack:${{steps.meta.outputs.version}}-${{matrix.os.suffix}}
-
name: Build and Push (mucoll-sim)
id: docker_build_mucoll-sim
Expand All @@ -61,5 +61,5 @@ jobs:
file: ./${{matrix.os.dir}}/Dockerfile-sim
build-args: |
VERSION=${{ steps.meta.outputs.version }}
REPOSITORY=${{ env.REGISTRY }}
tags: ${{ env.REGISTRY }}/mucoll-sim:${{steps.meta.outputs.version}}-${{matrix.os.suffix}}
REPOSITORY=ghcr.io/${{ github.repository_owner }}
tags: ghcr.io/${{ github.repository_owner }}/mucoll-sim:${{steps.meta.outputs.version}}-${{matrix.os.suffix}}

0 comments on commit 1333fa6

Please sign in to comment.