Skip to content

Commit

Permalink
chore(ci): tag images for docker hub during build
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Gianelloni <wolf31o2@blinklabs.io>
  • Loading branch information
wolf31o2 committed Apr 1, 2023
1 parent a588e35 commit c0f3ddd
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions .github/workflows/publish.yml
Expand Up @@ -42,6 +42,7 @@ jobs:
uses: docker/metadata-action@v4
with:
images: |
${{ env.DOCKER_IMAGE_NAME }}
${{ env.GHCR_IMAGE_NAME }}
flavor: |
latest=false
Expand Down Expand Up @@ -108,6 +109,7 @@ jobs:
uses: docker/metadata-action@v4
with:
images: |
${{ env.DOCKER_IMAGE_NAME }}
${{ env.GHCR_IMAGE_NAME }}
flavor: |
latest=false
Expand Down Expand Up @@ -239,14 +241,6 @@ jobs:
run: docker manifest push ${{ steps.meta-ghcr-tag.outputs.tags }}
if: startsWith(github.ref, 'refs/tags/')

# Retag all the things for Docker Hub
- run: docker tag ${{ steps.meta-ghcr.outputs.tags }}-amd64 ${{ steps.meta-dockerhub.outputs.tags }}-amd64
- run: docker tag ${{ steps.meta-ghcr.outputs.tags }}-arm64v8 ${{ steps.meta-dockerhub.outputs.tags }}-arm64v8

# Push images to Docker Hub
- run: docker push ${{ steps.meta-dockerhub.outputs.tags }}-amd64
- run: docker push ${{ steps.meta-dockerhub.outputs.tags }}-arm64v8

# Now, create manifests for Docker Hub

- name: manifest-dockerhub
Expand Down

0 comments on commit c0f3ddd

Please sign in to comment.