-
Notifications
You must be signed in to change notification settings - Fork 192
61 lines (55 loc) · 1.56 KB
/
docker-image-build.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
---
name: Docker Image Build
on:
pull_request:
push:
paths:
- "docker/**"
- ".github/workflows/docker-image-build.yml"
jobs:
docker-image-build:
name: Build & Test (${{ matrix.service-name }})
runs-on: ubuntu-latest
strategy:
matrix:
service-name:
- archlinux
- centos-7
- centos-stream-8
- centos-stream-9
- debian-11
- debian-12
- debian-testing
- debian-testing-autotools
- fedora-38
- fedora-39
- fedora-rawhide
- opensuse-leap-15
- opensuse-tumbleweed
- ubuntu-20.04
- ubuntu-22.04
- ubuntu-devel
- ubuntu-devel-autotools
fail-fast: false
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Build & Start
run: docker compose up --build --detach ${{ matrix.service-name }}
working-directory: docker
- name: Test
run: |
until $(curl --fail --output tile.png --silent http://localhost:8081/tiles/renderd-example/9/297/191.png); do
echo 'Sleeping 5s';
sleep 5;
done
echo 'dbf26531286e844a3a9735cdd193598dca78d22f77cafe5824bcaf17f88cbb08 tile.png' | sha256sum --check
timeout-minutes: 1
- name: Show logs
if: failure()
run: docker compose logs
working-directory: docker
- name: Stop
if: success() || failure()
run: docker compose down --volumes
working-directory: docker