Skip to content

Commit

Permalink
ci: add dev condition
Browse files Browse the repository at this point in the history
  • Loading branch information
0xawaz committed Nov 21, 2024
1 parent 009e507 commit c056f0c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/common-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ jobs:
run: |
echo "DOCKER_TAG_IMAGE=${{ github.ref_name }}" >> "$GITHUB_ENV"
- name: Docker Build and Push
- name: Docker Build for Audit
uses: docker/build-push-action@5cd11c3a4ced054e52742c5fd54dca954e0edd85 # v6.7.0
with:
context: ${{ inputs.docker-context }}
Expand Down Expand Up @@ -166,7 +166,7 @@ jobs:
env:
DOCKER_METADATA_ANNOTATIONS_LEVELS: index

- name: Docker Build and Push Dev Image
- name: Docker Build Dev Image
if: ${{ inputs.generate-dev-image }}
uses: docker/build-push-action@5cd11c3a4ced054e52742c5fd54dca954e0edd85 # v6.7.0
timeout-minutes: 360
Expand All @@ -184,7 +184,8 @@ jobs:
labels: ${{ steps.meta.outputs.labels }}
annotations: ${{ steps.meta.outputs.annotations }}

- name: Run Trivy vulnerability scanner
- name: Run Trivy vulnerability scanner Dev Image
if: ${{ inputs.generate-dev-image }}
uses: aquasecurity/trivy-action@5681af892cd0f4997658e2bacc62bd0a894cf564 # 0.27.0
with:
image-ref: 'ghcr.io/zama-ai/${{ inputs.image-dev-name }}:${{env.DOCKER_TAG_IMAGE}}'
Expand Down

0 comments on commit c056f0c

Please sign in to comment.