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 }}