Skip to content

Commit

Permalink
Update push-dockerhub.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Marukome0743 authored Nov 13, 2023
1 parent f0d68ce commit 8d05dbc
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/push-dockerhub.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ on:

env:
REGISTRY: docker.io
IMAGE_NAME: marukome0743/tna

jobs:
build:
Expand All @@ -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:
Expand All @@ -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
Expand All @@ -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 }}
github-token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 8d05dbc

Please sign in to comment.