From 2800513c53e51e652bfeba092f58eca5d5cca87f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=90=8C=E6=A3=AE?= Date: Fri, 26 Apr 2024 16:56:37 +0800 Subject: [PATCH] =?UTF-8?q?add:=20Docker=20Hub=20=E9=95=9C=E5=83=8F?= =?UTF-8?q?=E5=8F=91=E5=B8=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/docker-image.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index 4212d9ee..b510bc93 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -16,7 +16,6 @@ jobs: - name: Print GitHub context run: | echo "repository: ${{ github.repository }}" - echo "repository_name: ${{ github.repository_name }}" echo "actor: ${{ github.actor }}" echo "ref_name: ${{ github.ref_name }}" @@ -47,7 +46,7 @@ jobs: push: true platforms: linux/amd64,linux/arm64 tags: | - ${{ secrets.DOCKERHUB_USERNAME }}/${{ DOCKERHUB_REPOSITORY_NAME }}:${{ github.ref_name }} - ${{ secrets.DOCKERHUB_USERNAME }}/${{ DOCKERHUB_REPOSITORY_NAME }}:latest + ${{ secrets.DOCKERHUB_USERNAME }}/${{ secrets.DOCKERHUB_REPOSITORY_NAME }}:${{ github.ref_name }} + ${{ secrets.DOCKERHUB_USERNAME }}/${{ secrets.DOCKERHUB_REPOSITORY_NAME }}:latest ghcr.io/${{ github.repository }}:${{ github.ref_name }} ghcr.io/${{ github.repository }}:latest