Skip to content

Add workflow_dispatch for push actions #51

Add workflow_dispatch for push actions

Add workflow_dispatch for push actions #51

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
output-format: table
severity-cutoff: critical