mirror of
https://github.com/ilteoood/docker-surfshark.git
synced 2026-01-04 20:04:52 +01:00
28 lines
997 B
YAML
28 lines
997 B
YAML
name: Build only image
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
name: Build image job
|
|
steps:
|
|
- name: Checkout master
|
|
uses: actions/checkout@master
|
|
- name: Build image
|
|
uses: ilteoood/docker_buildx@master
|
|
with:
|
|
tag: latest,1.0
|
|
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@master
|
|
with:
|
|
image-reference: "ilteoood/docker-surfshark:latest"
|
|
dockerfile-path: "./Dockerfile"
|
|
fail-build: true
|
|
include-app-packages: true
|
|
- name: Anchore inline scan JSON results
|
|
run: for j in `ls ./anchore-reports/*.json`; do echo "---- ${j} ----"; cat ${j}; echo; done |