-
Notifications
You must be signed in to change notification settings - Fork 49
40 lines (36 loc) · 1.13 KB
/
status-checks-dockerfile.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# 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