Skip to content

Add target to run Clair security analysis on images #21

Add target to run Clair security analysis on images

Add target to run Clair security analysis on images #21

Workflow file for this run

---
name: Main push
on:
push:
branches:
- main
- parodos-dev
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha != '' && github.event.pull_request.head.sha || github.sha }}
- uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '17'
- name: Maven Verify
run: mvn clean verify
- name: Check generated files are up to date
run: |
if [[ $(git ls-files --others --exclude-standard) ]]; then echo "These files are not tracked by git"; git ls-files --others --exclude-standard; exit 1; fi
if [ -n "$(git status --porcelain)" ]; then echo "There are uncommitted changes:"; git status --short; exit 1; fi
- name: "Build container images"
run: |
make build-images GIT_BRANCH=${GITHUB_REF##*/}
make tag-images GIT_BRANCH=${GITHUB_REF##*/}
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
registry: "quay.io"
username: "parodos-dev+githubpush"
password: "${{ secrets.QUAY_GITHUB_TOKEN }}"
- name: "Build container images"
run: |
make push-images GIT_BRANCH=${GITHUB_REF##*/}