mirror of
https://github.com/ilteoood/docker-surfshark.git
synced 2025-12-27 15:21:33 +01:00
31 lines
1.1 KiB
YAML
31 lines
1.1 KiB
YAML
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.0.5
|
|
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 }}
|