Skip to content

Commit

Permalink
Update push-dockerhub.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
JamBalaya56562 authored Nov 20, 2023
1 parent e427927 commit b137ad1
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/push-dockerhub.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ on:
- "tailwind.config.ts"
- "tsconfig.json"
- "yarn.lock"
pull_request:
pull_request_target:
branches: [ main ]
workflow_dispatch:

Expand All @@ -37,7 +37,7 @@ jobs:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to Docker Hub
if: ${{ secrets.DOCKER_USER != "" && secrets.DOCKER_PAT != "" }}
if: github.repository_owner == 'JamBalaya56562'
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USER }}
Expand All @@ -55,7 +55,7 @@ jobs:
with:
context: .
platforms: linux/amd64,linux/arm64
push: ${{ github.event_name != 'pull_request' }}
push: ${{ github.repository_owner == 'JamBalaya56562' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=registry,ref=${{ env.REGISTRY }}/${{ env.REPOSITORY }}:latest
Expand All @@ -64,10 +64,10 @@ jobs:
provenance: false

- name: Docker Scout
if: ${{ github.event_name == 'pull_request' && secrets.DOCKER_USER != "" && secrets.DOCKER_PAT != "" }}
if: github.event_name == 'pull_request_target' && github.repository_owner == 'JamBalaya56562'
uses: docker/scout-action@v1
with:
command: cves,recommendations,compare
command: compare
image: ${{ steps.meta.outputs.tags }}
to: ${{ env.REGISTRY }}/${{ env.REPOSITORY }}:latest
ignore-unchanged: true
Expand Down

0 comments on commit b137ad1

Please sign in to comment.