-
Notifications
You must be signed in to change notification settings - Fork 47
159 lines (153 loc) · 4.78 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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
name: Docker images build
on:
push:
branches: ['*']
schedule:
- cron: '30 0 1 * *'
jobs:
docker:
runs-on: ubuntu-latest
strategy:
matrix:
include:
- name: openrc-alpine
dockerfile: openrc/alpine/Dockerfile
platforms: |-
linux/amd64
tags: |-
jrei/openrc-alpine:latest
- name: aports-dev
dockerfile: aports-dev/Dockerfile
platforms: |-
linux/amd64
tags: |-
jrei/aports-dev:latest
- name: systemd-centos-7
dockerfile: systemd/centos/7.Dockerfile
platforms: |-
linux/amd64
linux/arm/v7
linux/arm64
tags: |-
jrei/systemd-centos:7
- name: systemd-centos-8
dockerfile: systemd/centos/8.Dockerfile
platforms: |-
linux/amd64
linux/arm64
tags: |-
jrei/systemd-centos:8
jrei/systemd-centos:latest
- name: systemd-debian-10
dockerfile: systemd/debian/10.Dockerfile
platforms: |-
linux/amd64
linux/arm/v7
linux/arm64
tags: |-
jrei/systemd-debian:10
jrei/systemd-debian:buster
- name: systemd-debian-11
dockerfile: systemd/debian/11.Dockerfile
platforms: |-
linux/amd64
linux/arm/v7
linux/arm64
tags: |-
jrei/systemd-debian:11
jrei/systemd-debian:bullseye
jrei/systemd-debian:latest
- name: systemd-debian-12
dockerfile: systemd/debian/12.Dockerfile
platforms: |-
linux/amd64
linux/arm/v7
linux/arm64
tags: |-
jrei/systemd-debian:12
jrei/systemd-debian:bookworm
- name: systemd-debian-sid
dockerfile: systemd/debian/sid.Dockerfile
platforms: |-
linux/amd64
linux/arm/v7
linux/arm64
tags: |-
jrei/systemd-debian:sid
- name: systemd-fedora-latest
dockerfile: systemd/fedora/Dockerfile
platforms: |-
linux/amd64
linux/arm64
tags: |-
jrei/systemd-fedora:latest
- name: systemd-ubuntu-16.04
dockerfile: systemd/ubuntu/16.04.Dockerfile
platforms: |-
linux/amd64
linux/arm/v7
linux/arm64
tags: |-
jrei/systemd-ubuntu:16.04
jrei/systemd-ubuntu:xenial
- name: systemd-ubuntu-18.04
dockerfile: systemd/ubuntu/18.04.Dockerfile
platforms: |-
linux/amd64
linux/arm/v7
linux/arm64
tags: |-
jrei/systemd-ubuntu:18.04
jrei/systemd-ubuntu:bionic
- name: systemd-ubuntu-20.04
dockerfile: systemd/ubuntu/20.04.Dockerfile
platforms: |-
linux/amd64
linux/arm/v7
linux/arm64
tags: |-
jrei/systemd-ubuntu:20.04
jrei/systemd-ubuntu:focal
- name: systemd-ubuntu-22.04
dockerfile: systemd/ubuntu/22.04.Dockerfile
platforms: |-
linux/amd64
linux/arm/v7
linux/arm64
tags: |-
jrei/systemd-ubuntu:22.04
jrei/systemd-ubuntu:jammy
- name: systemd-ubuntu-24.04
dockerfile: systemd/ubuntu/24.04.Dockerfile
platforms: |-
linux/amd64
linux/arm/v7
linux/arm64
tags: |-
jrei/systemd-ubuntu:24.04
jrei/systemd-ubuntu:noble
jrei/systemd-ubuntu:latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to DockerHub
uses: docker/login-action@v2
with:
username: jrei
password: ${{ secrets.DOCKER_HUB_TOKEN }}
- name: Build and push ${{ matrix.name }}
uses: docker/build-push-action@v3
with:
context: .
file: ${{ matrix.dockerfile }}
platforms: ${{ matrix.platforms }}
push: true
tags: ${{ matrix.tags }}
labels: |
maintainer=${{ github.repository_owner }}
org.opencontainers.image.vendor=${{ github.repository_owner }}
org.opencontainers.image.revision=${{ github.sha }}