From 6bf073bf6831d3a0f93772e367472fe9cc737f9c Mon Sep 17 00:00:00 2001 From: devon Date: Mon, 24 Oct 2022 14:25:36 +0800 Subject: [PATCH] update docker push workflows --- .github/workflows/docker-push.yml | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/.github/workflows/docker-push.yml b/.github/workflows/docker-push.yml index 9792f5b..ae70546 100644 --- a/.github/workflows/docker-push.yml +++ b/.github/workflows/docker-push.yml @@ -5,9 +5,6 @@ on: tags: - "v*.*.*" -env: - GHCR_NAME: devon-chain - jobs: push_to_registries: name: Push Docker image to multiple registries @@ -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 @@ -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 }} \ No newline at end of file + ${{ 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 }} \ No newline at end of file