13
13
runs-on : ubuntu-latest
14
14
outputs :
15
15
matrix : ${{ steps.set-matrix.outputs.matrix }}
16
- server_version : ${{ steps.server_version.outputs.server_version }}
17
- db_version : ${{ steps.db_version.outputs.db_version }}
18
16
steps :
19
17
- name : Source checkout
20
18
uses : actions/checkout@v4
25
23
- id : set-matrix
26
24
run : echo "matrix=$(yq -o json build_versions.yaml | jq -c)" >> $GITHUB_OUTPUT
27
25
28
- - id : server_version
29
- run : echo "server_version=$(yq '.include[1].server_version' build_versions.yaml )" | cut -d- -f1 >> $GITHUB_OUTPUT
30
-
31
- - id : db_version
32
- run : echo "db_version=$(yq '.include[1].db_version' build_versions.yaml)" | cut -d- -f1 >> $GITHUB_OUTPUT
33
-
34
26
build-X86-container :
35
27
runs-on : ubuntu-24.04
36
28
permissions :
40
32
strategy :
41
33
matrix : ${{ fromJson(needs.setup-matrix.outputs.matrix) }}
42
34
steps :
35
+ - id : server_version
36
+ run : echo "server_version=${{ matrix.server_version }}" | cut -d- -f1 >> $GITHUB_OUTPUT
37
+
38
+ - id : db_version
39
+ run : echo "db_version=${{ matrix.db_version }}" | cut -d- -f1 >> $GITHUB_OUTPUT
40
+
43
41
- name : Build OpenVox Server ${{ matrix.release }} container
44
42
uses : voxpupuli/gha-build-and-publish-a-container@v2
45
43
with :
63
61
registry_password : ${{ secrets.GITHUB_TOKEN }}
64
62
build_args : |
65
63
OPENVOX_RELEASE=${{ matrix.release }}
66
- OPENVOXSERVER_VERSION=${{ needs.setup-matrix .outputs.server_version }}
67
- OPENVOXDB_VERSION=${{ needs.setup-matrix .outputs.db_version }}
64
+ OPENVOXSERVER_VERSION=${{ steps.server_version .outputs.server_version }}
65
+ OPENVOXDB_VERSION=${{ steps.db_version .outputs.db_version }}
68
66
R10K_VERSION=${{ matrix.r10k_version }}
69
67
build_arch : linux/amd64
70
68
build_context : openvoxserver
81
79
strategy :
82
80
matrix : ${{ fromJson(needs.setup-matrix.outputs.matrix) }}
83
81
steps :
82
+ - id : server_version
83
+ run : echo "server_version=${{ matrix.server_version }}" | cut -d- -f1 >> $GITHUB_OUTPUT
84
+
85
+ - id : db_version
86
+ run : echo "db_version=${{ matrix.db_version }}" | cut -d- -f1 >> $GITHUB_OUTPUT
87
+
84
88
- name : Build OpenVox Server ${{ matrix.release }} container
85
89
uses : voxpupuli/gha-build-and-publish-a-container@v2
86
90
with :
@@ -104,8 +108,8 @@ jobs:
104
108
registry_password : ${{ secrets.GITHUB_TOKEN }}
105
109
build_args : |
106
110
OPENVOX_RELEASE=${{ matrix.release }}
107
- OPENVOXSERVER_VERSION=${{ needs.setup-matrix .outputs.server_version }}
108
- OPENVOXDB_VERSION=${{ needs.setup-matrix .outputs.db_version }}
111
+ OPENVOXSERVER_VERSION=${{ steps.server_version .outputs.server_version }}
112
+ OPENVOXDB_VERSION=${{ steps.db_version .outputs.db_version }}
109
113
R10K_VERSION=${{ matrix.r10k_version }}
110
114
build_arch : linux/arm64
111
115
build_context : openvoxserver
@@ -139,17 +143,15 @@ jobs:
139
143
username : voxpupulibot
140
144
password : ${{ secrets.DOCKERHUB_BOT_ADMIN_TOKEN }}
141
145
142
- - name : Create multi arch manifests
143
- run : |
144
- docker buildx imagetools create -t ghcr.io/openvoxproject/openvoxserver:${{ needs.setup-matrix.outputs.server_version }}-${{ github.ref_name }} \
145
- ghcr.io/openvoxproject/openvoxserver:${{ matrix.release }}-${{ github.sha }}-arm64 \
146
- ghcr.io/openvoxproject/openvoxserver:${{ matrix.release }}-${{ github.sha }}-x86_64
146
+ - id : server_version
147
+ run : echo "server_version=${{ matrix.server_version }}" | cut -d- -f1 >> $GITHUB_OUTPUT
147
148
148
- docker buildx imagetools create -t ghcr.io/openvoxproject/openvoxserver:${{ needs.setup-matrix.outputs.server_version }}-latest \
149
- ghcr.io/openvoxproject/openvoxserver:${{ matrix.release }}-${{ github.sha }}-arm64 \
150
- ghcr.io/openvoxproject/openvoxserver:${{ matrix.release }}-${{ github.sha }}-x86_64
149
+ - id : db_version
150
+ run : echo "db_version=${{ matrix.db_version }}" | cut -d- -f1 >> $GITHUB_OUTPUT
151
151
152
- docker buildx imagetools create -t ghcr.io/openvoxproject/openvoxserver:${{ matrix.release }}-latest \
152
+ - name : Create multi arch manifests
153
+ run : |
154
+ docker buildx imagetools create -t ghcr.io/openvoxproject/openvoxserver:${{ steps.server_version.outputs.server_version }}-${{ github.ref_name }} \
153
155
ghcr.io/openvoxproject/openvoxserver:${{ matrix.release }}-${{ github.sha }}-arm64 \
154
156
ghcr.io/openvoxproject/openvoxserver:${{ matrix.release }}-${{ github.sha }}-x86_64
155
157
@@ -163,15 +165,7 @@ jobs:
163
165
164
166
# on docker.io we use the voxpupuli namespace because new organizations are not free anymore
165
167
#
166
- docker buildx imagetools create -t docker.io/voxpupuli/openvoxserver:${{ needs.setup-matrix.outputs.server_version }}-${{ github.ref_name }} \
167
- ghcr.io/openvoxproject/openvoxserver:${{ matrix.release }}-${{ github.sha }}-arm64 \
168
- ghcr.io/openvoxproject/openvoxserver:${{ matrix.release }}-${{ github.sha }}-x86_64
169
-
170
- docker buildx imagetools create -t docker.io/voxpupuli/openvoxserver:${{ needs.setup-matrix.outputs.server_version }}-latest \
171
- ghcr.io/openvoxproject/openvoxserver:${{ matrix.release }}-${{ github.sha }}-arm64 \
172
- ghcr.io/openvoxproject/openvoxserver:${{ matrix.release }}-${{ github.sha }}-x86_64
173
-
174
- docker buildx imagetools create -t docker.io/voxpupuli/openvoxserver:${{ matrix.release }}-latest \
168
+ docker buildx imagetools create -t docker.io/voxpupuli/openvoxserver:${{ steps.server_version.outputs.server_version }}-${{ github.ref_name }} \
175
169
ghcr.io/openvoxproject/openvoxserver:${{ matrix.release }}-${{ github.sha }}-arm64 \
176
170
ghcr.io/openvoxproject/openvoxserver:${{ matrix.release }}-${{ github.sha }}-x86_64
177
171
@@ -186,15 +180,7 @@ jobs:
186
180
- name : Create Alpine multi arch manifests
187
181
if : ${{ matrix.release == '8' }}
188
182
run : |
189
- docker buildx imagetools create -t ghcr.io/openvoxproject/openvoxserver:${{ needs.setup-matrix.outputs.server_version }}-${{ github.ref_name }}-alpine-beta \
190
- ghcr.io/openvoxproject/openvoxserver:${{ matrix.release }}-${{ github.sha }}-arm64-alpine \
191
- ghcr.io/openvoxproject/openvoxserver:${{ matrix.release }}-${{ github.sha }}-x86_64-alpine
192
-
193
- docker buildx imagetools create -t ghcr.io/openvoxproject/openvoxserver:${{ needs.setup-matrix.outputs.server_version }}-latest-alpine-beta \
194
- ghcr.io/openvoxproject/openvoxserver:${{ matrix.release }}-${{ github.sha }}-arm64-alpine \
195
- ghcr.io/openvoxproject/openvoxserver:${{ matrix.release }}-${{ github.sha }}-x86_64-alpine
196
-
197
- docker buildx imagetools create -t ghcr.io/openvoxproject/openvoxserver:${{ matrix.release }}-latest-alpine-beta \
183
+ docker buildx imagetools create -t ghcr.io/openvoxproject/openvoxserver:${{ steps.server_version.outputs.server_version }}-${{ github.ref_name }}-alpine-beta \
198
184
ghcr.io/openvoxproject/openvoxserver:${{ matrix.release }}-${{ github.sha }}-arm64-alpine \
199
185
ghcr.io/openvoxproject/openvoxserver:${{ matrix.release }}-${{ github.sha }}-x86_64-alpine
200
186
@@ -207,16 +193,7 @@ jobs:
207
193
ghcr.io/openvoxproject/openvoxserver:8-${{ github.sha }}-x86_64-alpine
208
194
209
195
# on docker.io we use the voxpupuli namespace because new organizations are not free anymore
210
- #
211
- docker buildx imagetools create -t docker.io/voxpupuli/openvoxserver:${{ needs.setup-matrix.outputs.server_version }}-${{ github.ref_name }}-alpine-beta \
212
- ghcr.io/openvoxproject/openvoxserver:${{ matrix.release }}-${{ github.sha }}-arm64-alpine \
213
- ghcr.io/openvoxproject/openvoxserver:${{ matrix.release }}-${{ github.sha }}-x86_64-alpine
214
-
215
- docker buildx imagetools create -t docker.io/voxpupuli/openvoxserver:${{ needs.setup-matrix.outputs.server_version }}-latest-alpine-beta \
216
- ghcr.io/openvoxproject/openvoxserver:${{ matrix.release }}-${{ github.sha }}-arm64-alpine \
217
- ghcr.io/openvoxproject/openvoxserver:${{ matrix.release }}-${{ github.sha }}-x86_64-alpine
218
-
219
- docker buildx imagetools create -t docker.io/voxpupuli/openvoxserver:${{ matrix.release }}-latest-alpine-beta \
196
+ docker buildx imagetools create -t docker.io/voxpupuli/openvoxserver:${{ steps.server_version.outputs.server_version }}-${{ github.ref_name }}-alpine-beta \
220
197
ghcr.io/openvoxproject/openvoxserver:${{ matrix.release }}-${{ github.sha }}-arm64-alpine \
221
198
ghcr.io/openvoxproject/openvoxserver:${{ matrix.release }}-${{ github.sha }}-x86_64-alpine
222
199
0 commit comments