Use general version on Github Actions #44
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Full checkup for SimpleRisk Docker images | |
on: | |
pull_request: | |
branches: [ master ] | |
env: | |
IMAGE_TAG: "simplerisk/simplerisk:testing" | |
CONTEXT_PATH: "simplerisk/" | |
DOCKERFILE_PATH: "simplerisk/jammy/Dockerfile" | |
DOCKLE_HOST: "unix:///var/run/docker.sock" | |
jobs: | |
simplerisk-minimal-php81: | |
name: 'Verify simplerisk/simplerisk image based on Ubuntu 22.04 (Jammy)' | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Build Docker container | |
uses: docker/build-push-action@v5 | |
with: | |
context: ${{ env.CONTEXT_PATH }} | |
file: ${{ env.DOCKERFILE_PATH }} | |
tags: ${{ env.IMAGE_TAG }} | |
- name: Run linter with Dockle | |
uses: erzz/dockle-action@v1 | |
with: | |
image: ${{ env.IMAGE_TAG }} | |
failure-threshold: FATAL | |
dockle-host: "unix:///var/run/docker.sock" | |
- name: Scan vulnerabilities with Grype | |
uses: anchore/scan-action@v3 | |
with: | |
image: ${{ env.IMAGE_TAG }} | |
only-fixed: true | |
severity-cutoff: critical |