Skip to content

Commit

Permalink
Task/GitHub action trigger (#28)
Browse files Browse the repository at this point in the history
fix trigger condition for workflow call
  • Loading branch information
felixZdi authored Apr 11, 2024
1 parent 9a6f4ea commit 510f4c0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ jobs:
restore-keys: |
${{ runner.os }}-buildx-
- name: Login to GitHub Container Registry
if: github.event_name != 'pull_request'
if: github.event_name != 'pull_request' || inputs.tag != ''
uses: docker/login-action@v3
with:
registry: ghcr.io
Expand All @@ -85,7 +85,7 @@ jobs:
context: .
file: ./Dockerfile
platforms: linux/amd64,linux/arm64,linux/386,linux/arm/v7
push: ${{ github.event_name != 'pull_request' }}
push: ${{ github.event_name != 'pull_request' || inputs.tag != '' }}
tags: ${{ steps.env.outputs.tags }}
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache
Expand All @@ -97,7 +97,7 @@ jobs:
org.opencontainers.image.licenses=${{ github.event.repository.license.name }}
- name: Run Trivy vulnerability scanner
uses: aquasecurity/trivy-action@master
if: ${{ github.event_name != 'pull_request' }}
if: ${{ github.event_name != 'pull_request' || inputs.tag != '' }}
with:
image-ref: ${{ steps.env.outputs.tags }}
format: 'table'
Expand Down

0 comments on commit 510f4c0

Please sign in to comment.