Skip to content

Commit

Permalink
update docker push workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
devon-chain committed Oct 24, 2022
1 parent 475d82b commit 6bf073b
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions .github/workflows/docker-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@ on:
tags:
- "v*.*.*"

env:
GHCR_NAME: devon-chain

jobs:
push_to_registries:
name: Push Docker image to multiple registries
Expand Down Expand Up @@ -41,7 +38,7 @@ jobs:
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ env.GHCR_NAME }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and push Docker images
Expand All @@ -51,7 +48,7 @@ jobs:
push: true
platforms: linux/amd64, linux/arm64
tags: |
${{ secrets.DOCKER_HUB_USERNAME }}/pundix:latest
${{ secrets.DOCKER_HUB_USERNAME }}/pundix:${{ steps.meta.outputs.tag }}
ghcr.io/${{ env.GHCR_NAME }}/pundix:latest
ghcr.io/${{ env.GHCR_NAME }}/pundix:${{ steps.meta.outputs.tag }}
${{ secrets.DOCKER_HUB_USERNAME }}/${{ github.event.repository.name }}:latest
${{ secrets.DOCKER_HUB_USERNAME }}/${{ github.event.repository.name }}:${{ steps.meta.outputs.tag }}
ghcr.io/${{ github.repository_owner }}/${{ github.event.repository.name }}:latest
ghcr.io/${{ github.repository_owner }}/${{ github.event.repository.name }}:${{ steps.meta.outputs.tag }}

0 comments on commit 6bf073b

Please sign in to comment.