pwndbg/.github/workflows/docker.yml

29 lines
785 B
YAML

name: Docker build
on: [push, pull_request]
jobs:
docker:
strategy:
fail-fast: false
matrix:
images: [ubuntu18.04, ubuntu20.04, ubuntu22.04, debian10, debian11, archlinux]
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v2
- name: Cache for docker images
uses: satackey/action-docker-layer-caching@v0.0.11
# Ignore the failure of a step and avoid terminating the job.
continue-on-error: true
with:
path: ~/.cache/images
key: ${{ matrix.images }}-cache-images-{hash}
- name: Docker Build ${{ matrix.images }}
run: docker-compose pull ${{ matrix.images }}
- name: Test on ${{ matrix.images }}
run: docker-compose run ${{ matrix.images }} ./tests.sh