Skip to content

Commit

Permalink
Create dev.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
chzbrgr71 authored Nov 6, 2019
1 parent d42202b commit f8f0ae9
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/dev.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Container Security Scan
on:
push:
branches:
- dev
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Build the Docker image
run: docker build ./app/flights-api --file app/flights-api/Dockerfile --tag localbuild/testimage:latest
- uses: anchore/scan-action@master
with:
image-reference: "localbuild/testimage:latest"
dockerfile-path: "./app/flights-api/Dockerfile"
fail-build: true
- name: anchore inline scan JSON results
run: for j in `ls ./anchore-reports/*.json`; do echo "---- ${j} ----"; cat ${j}; echo; done

0 comments on commit f8f0ae9

Please sign in to comment.