Skip to content

Merge branch 'fix_build' into trivy #3

Merge branch 'fix_build' into trivy

Merge branch 'fix_build' into trivy #3

Workflow file for this run

name: docker-nginx
on:
push:
tags:
- v*
branches:
- trivy
jobs:
main:
runs-on: ubuntu-22.04
steps:
- uses: FranzDiebold/github-env-vars-action@v2
- name: Checkout
uses: actions/checkout@v3
- name: Prepare docker buildx
uses: docker/setup-buildx-action@v2
- name: Build Docker image
uses: docker/build-push-action@v3
with:
context: .
platforms: linux/amd64
load: true
cache-from: type=gha
cache-to: type=gha,mode=max
tags: tivix/docker-nginx:${{ github.sha }}, tivix/docker-nginx:${{ env.CI_REF_NAME }}
- name: Run Trivy vulnerability scanner
uses: aquasecurity/trivy-action@master
with:
image-ref: 'tivix/docker-nginx:${{ github.sha }}'
format: 'table'
exit-code: '1'
ignore-unfixed: true
vuln-type: 'os,library'
severity: 'CRITICAL,HIGH'