Skip to content

Commit

Permalink
fix docker label for non latest image
Browse files Browse the repository at this point in the history
* Also adds QEMU and buildx as recommended in https://github.com/docker/build-push-action?tab=readme-ov-file#usage
  • Loading branch information
akshaykarle committed Oct 17, 2024
1 parent 3e6e2f2 commit dcb7e93
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,12 @@ jobs:
- uses: DeterminateSystems/flake-checker-action@main
- name: Build image
run: nix build .#dockerImage
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Log in to the Container registry
uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
Expand All @@ -64,5 +68,5 @@ jobs:
docker load --input result
docker tag pii:latest ${{ format('{0}/{1}:latest', env.REGISTRY, env.IMAGE_NAME) }}
docker push ${{ format('{0}/{1}:latest', env.REGISTRY, env.IMAGE_NAME) }}
docker tag pii:latest ${{ format('{0}/{1}:{2}', env.REGISTRY, env.IMAGE_NAME, steps.meta.outputs.tags) }}
docker push ${{ format('{0}/{1}:{2}', env.REGISTRY, env.IMAGE_NAME, steps.meta.outputs.tags) }}
docker tag pii:latest ${{ steps.meta.outputs.tags }}
docker push ${{ steps.meta.outputs.tags }}

0 comments on commit dcb7e93

Please sign in to comment.