From 8d05dbc3cfc26f65a186623cd06d5cb5cbd1e0f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=83=9E=E3=83=AB=E3=82=B3=E3=83=A1?= <146040408+Marukome0743@users.noreply.github.com> Date: Mon, 13 Nov 2023 14:39:49 +0900 Subject: [PATCH] Update push-dockerhub.yml --- .github/workflows/push-dockerhub.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/push-dockerhub.yml b/.github/workflows/push-dockerhub.yml index fa2af14..eba293a 100644 --- a/.github/workflows/push-dockerhub.yml +++ b/.github/workflows/push-dockerhub.yml @@ -23,6 +23,7 @@ on: env: REGISTRY: docker.io + IMAGE_NAME: marukome0743/tna jobs: build: @@ -48,7 +49,7 @@ jobs: id: meta uses: docker/metadata-action@v5 with: - images: ${{ env.REGISTRY }}/${{ github.repository }} + images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} - name: Build and push uses: docker/build-push-action@v5 with: @@ -57,7 +58,7 @@ jobs: push: ${{ github.event_name != 'pull_request' }} tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} - cache-from: type=registry,ref=${{ env.REGISTRY }}/${{ env.REPOSITORY }}:latest + cache-from: type=registry,ref=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest cache-to: type=inline outputs: type=image,name=target,annotation-index.org.opencontainers.image.description=My blog multi-arch image provenance: false @@ -68,8 +69,8 @@ jobs: with: command: cves,recommendations,compare image: ${{ steps.meta.outputs.tags }} - to: ${{ env.GHCR_REGISTRY }}/${{ env.REPOSITORY }}:latest + to: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest ignore-unchanged: true only-severities: critical,high write-comment: true - github-token: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file + github-token: ${{ secrets.GITHUB_TOKEN }}