forked from SSSD/sssd-ci-containers
-
Notifications
You must be signed in to change notification settings - Fork 0
110 lines (102 loc) · 3.1 KB
/
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
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
name: Build
on:
push:
branches:
- master
paths:
- '.github/workflows/build.yml'
- 'src/**'
- 'data/**'
- 'docker-compose.yml'
pull_request:
paths:
- '.github/workflows/build.yml'
- 'src/**'
- 'data/**'
- 'docker-compose.yml'
workflow_dispatch:
schedule:
- cron: '0 1 * * *'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
ANSIBLE_FORCE_COLOR: 1
DOCKER_HOST: unix:///run/podman/podman.sock
jobs:
get-matrix:
runs-on: ubuntu-latest
permissions:
contents: read
outputs:
matrix: ${{ steps.matrix.outputs.matrix }}
steps:
- uses: actions/checkout@v3
- name: Get build matrix
id: matrix
uses: ./.github/actions/get-build-matrix
fedora:
runs-on: ubuntu-latest
needs: 'get-matrix'
permissions:
contents: read
strategy:
fail-fast: false
matrix:
image: ${{ fromJson(needs.get-matrix.outputs.matrix) }}
steps:
- name: Checkout sources
uses: actions/checkout@v3
- name: Install dependencies
uses: ./.github/actions/install-dependencies
with:
tag: ${{ matrix.image.tag }}
- name: Build images
uses: ./.github/actions/build
with:
base_image: ${{ matrix.image.base }}
tag: ${{ matrix.image.tag }}
- name: Publish images
if: github.event_name != 'pull_request'
uses: ./.github/actions/publish
with:
credentials: ${{ secrets.QUAY_IO_CREDENTIALS }}
tag: ${{ matrix.image.tag }}
extra_tags: ${{ matrix.image.extra }}
other:
runs-on: ubuntu-latest
needs: 'fedora'
if: ${{ !cancelled() }}
permissions:
contents: read
strategy:
fail-fast: false
matrix:
image: [
{ base: 'quay.io/centos/centos:stream8', tag: 'centos-8', extra: '', unavailable: 'samba' },
{ base: 'quay.io/centos/centos:stream9', tag: 'centos-9', extra: 'centos-latest', unavailable: 'samba' },
{ base: 'quay.io/centos/centos:stream10-development', tag: 'centos-10', extra: '', unavailable: 'samba' },
{ base: 'docker.io/debian:12', tag: 'debian-12', extra: 'debian-latest', unavailable: 'ipa ldap samba' },
{ base: 'docker.io/ubuntu:latest', tag: 'ubuntu-latest', extra: '', unavailable: 'ipa ldap samba' },
{ base: 'docker.io/ubuntu:rolling', tag: 'ubuntu-rolling', extra: '', unavailable: 'ipa ldap samba' },
]
steps:
- name: Checkout sources
uses: actions/checkout@v3
- name: Install dependencies
uses: ./.github/actions/install-dependencies
with:
tag: ${{ matrix.image.tag }}
- name: Build images
uses: ./.github/actions/build
with:
base_image: ${{ matrix.image.base }}
tag: ${{ matrix.image.tag }}
unavailable: ${{ matrix.image.unavailable }}
- name: Publish images
if: github.event_name != 'pull_request'
uses: ./.github/actions/publish
with:
credentials: ${{ secrets.QUAY_IO_CREDENTIALS }}
tag: ${{ matrix.image.tag }}
extra_tags: ${{ matrix.image.extra }}