-
-
Notifications
You must be signed in to change notification settings - Fork 34
30 lines (29 loc) · 1.06 KB
/
build_only.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
name: Build only image
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
name: Build only image job
steps:
- name: Checkout master
uses: actions/checkout@master
- name: Build image
uses: ilteoood/docker_buildx@master
with:
tag: latest,1.7.2
platform: linux/amd64,linux/arm64,linux/ppc64le,linux/s390x,linux/386,linux/arm/v7,linux/arm/v6
imageName: ilteoood/docker-surfshark
- name: Scan image
uses: anchore/scan-action@v2
with:
image: "ilteoood/docker-surfshark:latest"
fail-build: true
acs-report-enable: true
severity-cutoff: critical
- name: Anchore inline scan JSON results
run: for j in `ls ./anchore-reports/*.json`; do echo "---- ${j} ----"; cat ${j}; echo; done
- name: Inspect action SARIF report
run: cat ${{ steps.scan.outputs.sarif }}