Skip to content

Status checks (Dockerfile) #15

Status checks (Dockerfile)

Status checks (Dockerfile) #15

# Workflow to check whether changes to master concerning the Dockerfile fulfill all requirements.
name: Status checks (Dockerfile)
on:
push:
branches: [ master ]
paths:
- Dockerfile
pull_request:
paths:
- Dockerfile
schedule:
# Run every monday on 9:00 in the morning (UTC).
- cron: "0 9 * * 1"
# Make it possible to trigger the checks manually.
workflow_dispatch:
jobs:
# Building the Dockerfile includes downloading the IRMA schemes.
# Therefore, we only run one check at the time, and we put a limit on the event types triggering this job.
docker-build-all:
runs-on: ubuntu-latest
strategy:
max-parallel: 1
matrix:
# busybox is not working yet.
image:
- "debian:stable"
- "alpine:latest"
- "ubuntu:latest"
- "centos:latest"
- "amazonlinux:latest"
steps:
- uses: actions/checkout@v3
- name: Build Dockerfile
run: docker build -t privacybydesign/irma:edge --build-arg BASE_IMAGE=${{ matrix.image }} .
- name: Test Docker image
run: docker run privacybydesign/irma:edge version