mirror of
https://github.com/shenxn/protonmail-bridge-docker.git
synced 2025-12-06 08:27:08 +00:00
Fix scan for build
This commit is contained in:
parent
cf8ab9b10d
commit
dcde0c07a3
17
.github/workflows/build.yaml
vendored
17
.github/workflows/build.yaml
vendored
@ -20,6 +20,11 @@ env:
|
|||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
services:
|
||||||
|
registry:
|
||||||
|
image: registry:2
|
||||||
|
ports:
|
||||||
|
- 5000:5000
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@master
|
uses: actions/checkout@master
|
||||||
@ -38,18 +43,19 @@ jobs:
|
|||||||
uses: docker/setup-qemu-action@v1
|
uses: docker/setup-qemu-action@v1
|
||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v1
|
uses: docker/setup-buildx-action@v1
|
||||||
- uses: docker/build-push-action@v2
|
- name: Build image without push to DockerHub
|
||||||
|
uses: docker/build-push-action@v2
|
||||||
with:
|
with:
|
||||||
context: ./build
|
context: ./build
|
||||||
file: ./build/Dockerfile
|
file: ./build/Dockerfile
|
||||||
platforms: linux/amd64,linux/arm64/v8,linux/arm/v7
|
platforms: linux/amd64,linux/arm64/v8,linux/arm/v7
|
||||||
load: true
|
push: true
|
||||||
labels: protonmail-bridge:latest
|
labels: localhost:5000/protonmail-bridge:latest
|
||||||
- name: Scan image
|
- name: Scan image
|
||||||
id: scan
|
id: scan
|
||||||
uses: anchore/scan-action@v2
|
uses: anchore/scan-action@v2
|
||||||
with:
|
with:
|
||||||
image: protonmail-bridge:latest
|
image: localhost:5000/protonmail-bridge:latest
|
||||||
fail-build: true
|
fail-build: true
|
||||||
severity-cutoff: critical
|
severity-cutoff: critical
|
||||||
acs-report-enable: true
|
acs-report-enable: true
|
||||||
@ -63,7 +69,8 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
username: ${{ secrets.REGISTRY_USERNAME }}
|
username: ${{ secrets.REGISTRY_USERNAME }}
|
||||||
password: ${{ secrets.REGISTRY_PASSWORD }}
|
password: ${{ secrets.REGISTRY_PASSWORD }}
|
||||||
- uses: docker/build-push-action@v2
|
- name: Push image
|
||||||
|
uses: docker/build-push-action@v2
|
||||||
with:
|
with:
|
||||||
context: ./build
|
context: ./build
|
||||||
file: ./build/Dockerfile
|
file: ./build/Dockerfile
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user