-
Notifications
You must be signed in to change notification settings - Fork 50
124 lines (118 loc) · 3.66 KB
/
build.yml
File metadata and controls
124 lines (118 loc) · 3.66 KB
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
name: Docker images build
on:
push:
branches: ['*']
schedule:
- cron: '30 0 1 * *'
jobs:
docker:
runs-on: ${{ matrix.platform.os }}
strategy:
matrix:
platform:
# - os: ubuntu-22.04-arm
# arch: linux/arm64
- os: ubuntu-latest
arch: linux/amd64
image:
- path: openrc/alpine
tags: |-
jrei/openrc-alpine:latest
- path: aports-dev
tags: |-
jrei/aports-dev:latest
- path: systemd/centos
version: "7"
tags: |-
jrei/systemd-centos:7
- path: systemd/centos
version: "8"
tags: |-
jrei/systemd-centos:8
jrei/systemd-centos:latest
- path: systemd/debian
version: "11"
tags: |-
jrei/systemd-debian:11
jrei/systemd-debian:bullseye
- path: systemd/debian
version: "12"
tags: |-
jrei/systemd-debian:12
jrei/systemd-debian:bookworm
- path: systemd/debian
version: "13"
tags: |-
jrei/systemd-debian:13
jrei/systemd-debian:trixie
jrei/systemd-debian:latest
- path: systemd/debian
version: "sid"
tags: |-
jrei/systemd-debian:sid
- path: systemd/fedora
version: "41"
tags: |-
jrei/systemd-fedora:41
- path: systemd/fedora
version: "42"
tags: |-
jrei/systemd-fedora:42
- path: systemd/fedora
version: "43"
tags: |-
jrei/systemd-fedora:43
- path: systemd/fedora
version: "44"
tags: |-
jrei/systemd-fedora:44
jrei/systemd-fedora:latest
- path: systemd/ubuntu
version: "22.04"
tags: |-
jrei/systemd-ubuntu:22.04
jrei/systemd-ubuntu:jammy
- path: systemd/ubuntu
version: "24.04"
tags: |-
jrei/systemd-ubuntu:24.04
jrei/systemd-ubuntu:noble
- path: systemd/ubuntu
version: "25.04"
tags: |-
jrei/systemd-ubuntu:25.04
jrei/systemd-ubuntu:plucky
- path: systemd/ubuntu
version: "25.10"
tags: |-
jrei/systemd-ubuntu:25.10
jrei/systemd-ubuntu:questing
- path: systemd/ubuntu
version: "26.04"
tags: |-
jrei/systemd-ubuntu:26.04
jrei/systemd-ubuntu:resolute
jrei/systemd-ubuntu:latest
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v4
- name: Login to DockerHub
uses: docker/login-action@v4
with:
username: jrei
password: ${{ secrets.DOCKER_HUB_TOKEN }}
- name: Build and push ${{ matrix.image.name }} ${{ matrix.image.version }}
uses: docker/build-push-action@v7
with:
context: .
build-args: ${{ matrix.image.version && format('VERSION={0}', matrix.image.version) }}
file: ${{ matrix.image.path }}/Dockerfile
platforms: ${{ matrix.platform.arch }}
push: true
tags: ${{ matrix.image.tags }}
labels: |
maintainer=${{ github.repository_owner }}
org.opencontainers.image.vendor=${{ github.repository_owner }}
org.opencontainers.image.revision=${{ github.sha }}