-
Notifications
You must be signed in to change notification settings - Fork 1
113 lines (90 loc) · 2.89 KB
/
common.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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
concurrency: ${{ github.workflow }}/${{ github.ref }}
on:
workflow_dispatch:
inputs:
push:
description: "Push built image"
default: true
required: false
type: boolean
workflow_call:
inputs:
push:
description: "Push built image"
default: true
required: false
type: boolean
jobs:
build-test:
runs-on: ubuntu-24.04
strategy:
fail-fast: false
matrix:
include:
- image: centos-stream9
dockerfile: centos.dockerfile
- image: fedora-39
dockerfile: fedora.dockerfile
- image: fedora-40
dockerfile: fedora.dockerfile
- image: fedora-41
dockerfile: fedora.dockerfile
- image: debian-12
dockerfile: debian.dockerfile
- image: debian-13
dockerfile: debian.dockerfile
- image: ubuntu-22.04
dockerfile: debian-old.dockerfile
- image: ubuntu-24.04
dockerfile: debian.dockerfile
- image: ubuntu-24.10
dockerfile: debian.dockerfile
- image: archlinux
dockerfile: archlinux.dockerfile
- image: opensuse-tumbleweed
dockerfile: suse.dockerfile
- image: opensuse-leap-15.6
dockerfile: suse.dockerfile
timeout-minutes: 15
env:
IMAGE: ghcr.io/${{ github.repository }}/${{ matrix.image }}
steps:
- uses: actions/checkout@v4
- uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- id: docker_meta
uses: docker/metadata-action@v5
with:
images: ${{ env.IMAGE }}
- id: docker_build
uses: docker/build-push-action@v6
with:
context: .
file: ${{ matrix.dockerfile }}
build-args: |
base_image=${{ matrix.image }}
pull: true
push: ${{ inputs.push }}
tags: ${{ steps.docker_meta.outputs.tags }}
labels: ${{ steps.docker_meta.outputs.labels }}
annotations: ${{ steps.docker_meta.outputs.annotations }}
cache-from: |
${{ steps.docker_meta.outputs.tags }}
${{ env.IMAGE }}:master
cache-to: type=inline
- run: podman pull docker-daemon:${{ steps.docker_build.outputs.imageid }} | tee .podman-image-id
- id: gnome-session-x11
name: Test gnome-session-x11
run: test/test-x11.sh $(cat .podman-image-id)
- id: gnome-session-wayland
name: Test gnome-session-wayland
run: test/test-wayland.sh $(cat .podman-image-id)
- name: Upload screenshot
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.image }}-screenshots
path: test/*.png
if: ${{ always() }}