mirror of
https://github.com/shenxn/protonmail-bridge-docker.git
synced 2026-03-26 21:35:58 +00:00
Test job: build only, no push to GHCR
This commit is contained in:
parent
ed4d5d491a
commit
c7d1ba9d28
8
.github/workflows/build.yaml
vendored
8
.github/workflows/build.yaml
vendored
@ -57,21 +57,21 @@ jobs:
|
||||
with:
|
||||
driver-opts: network=host
|
||||
|
||||
- name: Build and push
|
||||
- name: Build
|
||||
uses: docker/build-push-action@v6
|
||||
with:
|
||||
labels: ${{ steps.meta.outputs.labels }}
|
||||
context: ./build
|
||||
file: ./build/Dockerfile
|
||||
tags: "${{ env.GHCR_REPO }}:dev-pr${{ github.event.pull_request.number }}"
|
||||
push: true
|
||||
load: true
|
||||
tags: "protonmail-bridge:test"
|
||||
build-args: |
|
||||
version=${{ needs.resolve-version.outputs.version }}
|
||||
|
||||
- name: Run Trivy vulnerability scan
|
||||
uses: aquasecurity/trivy-action@0.30.0
|
||||
with:
|
||||
image-ref: "${{ env.GHCR_REPO }}:dev-pr${{ github.event.pull_request.number }}"
|
||||
image-ref: "protonmail-bridge:test"
|
||||
format: 'sarif'
|
||||
exit-code: 0
|
||||
severity: 'CRITICAL,HIGH'
|
||||
|
||||
Loading…
Reference in New Issue
Block a user