Skip to content

Added utility script and pipeline to build/push Docker image #6

Added utility script and pipeline to build/push Docker image

Added utility script and pipeline to build/push Docker image #6

Workflow file for this run

name: DockerBuild
on:
pull_request:
env:
DOCKER_REPOSITORY: breizhcamp/kalon
jobs:
docker-build:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Build an image from Dockerfile
run: |
docker build -t $DOCKER_REPOSITORY:${{ github.sha }} .
- name: Run Trivy vulnerability scanner
uses: aquasecurity/[email protected]
with:
image-ref: '${{ env.DOCKER_REPOSITORY }}:${{ github.sha }}'
ignore-unfixed: true
format: 'sarif'
output: 'trivy-results.sarif'
severity: 'CRITICAL,HIGH'
- name: Upload Trivy scan results to GitHub Security tab
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: 'trivy-results.sarif'