@@ -43,14 +43,15 @@ jobs:
43
43
runs-on : ubuntu-latest
44
44
env :
45
45
BUILDAH_FORMAT : oci
46
+ IMG_TAG : default-${{ matrix.os }}-${{ matrix.arch }}
46
47
steps :
47
48
- uses : actions/checkout@v3
48
49
- name : Build the server image
49
50
run : make KIND=server OS_NAME=${{ matrix.os}} BUILD_ARCH=${{ matrix.arch}} build-image
50
51
- name : Upload server image
51
52
52
53
with :
53
- image : " samba-server:${{ matrix.os }}-latest "
54
+ image : " samba-server:${{ env.IMG_TAG }}"
54
55
container_engine : ${{ env.CONTAINER_CMD }}
55
56
retention_days : 1
56
57
@@ -64,14 +65,15 @@ jobs:
64
65
runs-on : ubuntu-latest
65
66
env :
66
67
BUILDAH_FORMAT : oci
68
+ IMG_TAG : default-${{ matrix.os }}-${{ matrix.arch }}
67
69
steps :
68
70
- uses : actions/checkout@v3
69
71
- name : Build the ad server image
70
72
run : make KIND=ad-server OS_NAME=${{matrix.os}} BUILD_ARCH=${{matrix.arch}} build-image
71
73
- name : Upload ad server image
72
74
73
75
with :
74
- image : " samba-ad-server:${{ matrix.os}}-latest "
76
+ image : " samba-ad-server:${{ env.IMG_TAG }} "
75
77
container_engine : ${{ env.CONTAINER_CMD }}
76
78
retention_days : 1
77
79
83
85
runs-on : ubuntu-latest
84
86
env :
85
87
BUILDAH_FORMAT : oci
88
+ IMG_TAG : default-${{ matrix.os }}-${{ matrix.arch }}
86
89
steps :
87
90
- uses : actions/checkout@v3
88
91
- name : build the client image
92
95
- name : Upload the client image
93
96
94
97
with :
95
- image : " quay.io/ samba.org/samba -client:${{ matrix.os }}-latest "
98
+ image : " samba-client:${{ env.IMG_TAG }}"
96
99
container_engine : ${{ env.CONTAINER_CMD }}
97
100
retention_days : 1
98
101
@@ -105,15 +108,22 @@ jobs:
105
108
runs-on : ubuntu-latest
106
109
env :
107
110
BUILDAH_FORMAT : oci
111
+ IMG_TAG : default-${{ matrix.os }}-${{ matrix.arch }}
108
112
steps :
109
113
- uses : actions/checkout@v3
110
114
# Download locally stored samba-client image to be used as base for building
111
115
# samba-toolbox.
112
116
- name : Download client image
113
117
114
118
with :
115
- image : " quay.io/ samba.org/samba -client:${{ matrix.os }}-latest "
119
+ image : " samba-client:${{ env.IMG_TAG }}"
116
120
container_engine : ${{ env.CONTAINER_CMD }}
121
+ # Workaround: retag the image so that the FQIN image matches the name in
122
+ # the toolbox containerfiles.
123
+ - name : Apply OS-latest tag to image (for centos)
124
+ run : ${{ env.CONTAINER_CMD }} tag samba-client:${{ env.IMG_TAG }} quay.io/samba.org/samba-client:${{ matrix.os }}-latest
125
+ - name : Apply latest tag to image (for fedora)
126
+ run : ${{ env.CONTAINER_CMD }} tag samba-client:${{ env.IMG_TAG }} quay.io/samba.org/samba-client:latest
117
127
- name : Build the toolbox image
118
128
run : make KIND=toolbox OS_NAME=${{ matrix.os }} BUILD_ARCH=${{ matrix.arch }} build-image
119
129
@@ -124,15 +134,18 @@ jobs:
124
134
arch : [amd64]
125
135
needs : build-server
126
136
runs-on : ubuntu-latest
137
+ env :
138
+ BUILDAH_FORMAT : oci
139
+ IMG_TAG : default-${{ matrix.os }}-${{ matrix.arch }}
127
140
steps :
128
141
- uses : actions/checkout@v3
129
142
- name : Download server image
130
143
131
144
with :
132
- image : " samba-server:${{ matrix.os }}-latest "
145
+ image : " samba-server:${{ env.IMG_TAG }}"
133
146
container_engine : ${{ env.CONTAINER_CMD }}
134
147
- name : Test the server image
135
- run : LOCAL_TAG=" samba-server:${{ matrix.os}}-latest" tests/test-samba-container.sh
148
+ run : LOCAL_TAG=samba-server:${{ env.IMG_TAG }} tests/test-samba-container.sh
136
149
137
150
# Reminder: the nightly-server images consume nightly samba rpm builds
138
151
# it is not *just* an image that gets built nightly
@@ -144,14 +157,15 @@ jobs:
144
157
runs-on : ubuntu-latest
145
158
env :
146
159
BUILDAH_FORMAT : oci
160
+ IMG_TAG : nightly-${{ matrix.os }}-${{ matrix.arch }}
147
161
steps :
148
162
- uses : actions/checkout@v3
149
163
- name : Build the nightly server image
150
164
run : make KIND=server PACKAGE_SOURCE=nightly OS_NAME=${{ matrix.os }} BUILD_ARCH=${{ matrix.arch }} build-image
151
165
- name : Upload nightly server image
152
166
153
167
with :
154
- image : " samba-server:${{ matrix.os }}-nightly "
168
+ image : " samba-server:${{ env.IMG_TAG }}"
155
169
container_engine : ${{ env.CONTAINER_CMD }}
156
170
retention_days : 1
157
171
@@ -163,14 +177,15 @@ jobs:
163
177
runs-on : ubuntu-latest
164
178
env :
165
179
BUILDAH_FORMAT : oci
180
+ IMG_TAG : nightly-${{ matrix.os }}-${{ matrix.arch }}
166
181
steps :
167
182
- uses : actions/checkout@v3
168
183
- name : Build the nightly ad server image
169
184
run : make KIND=ad-server PACKAGE_SOURCE=nightly OS_NAME=${{ matrix.os }} BUILD_ARCH=${{ matrix.arch }} build-image
170
185
- name : Upload nightly AD server image
171
186
172
187
with :
173
- image : " samba-ad-server:${{ matrix.os }}-nightly "
188
+ image : " samba-ad-server:${{ env.IMG_TAG }}"
174
189
container_engine : ${{ env.CONTAINER_CMD }}
175
190
retention_days : 1
176
191
@@ -181,15 +196,18 @@ jobs:
181
196
arch : [amd64]
182
197
needs : build-nightly-server
183
198
runs-on : ubuntu-latest
199
+ env :
200
+ BUILDAH_FORMAT : oci
201
+ IMG_TAG : nightly-${{ matrix.os }}-${{ matrix.arch }}
184
202
steps :
185
203
- uses : actions/checkout@v3
186
204
- name : Download nightly server image
187
205
188
206
with :
189
- image : " samba-server:${{ matrix.os }}-nightly "
207
+ image : " samba-server:${{ env.IMG_TAG }}"
190
208
container_engine : ${{ env.CONTAINER_CMD }}
191
209
- name : Test the nightly server image
192
- run : LOCAL_TAG=samba-server:${{ matrix.os }}-nightly tests/test-samba-container.sh
210
+ run : LOCAL_TAG=samba-server:${{ env.IMG_TAG }} tests/test-samba-container.sh
193
211
194
212
test-ad-server-kubernetes :
195
213
strategy :
@@ -204,7 +222,8 @@ jobs:
204
222
# need to explicitly use 20.04 to avoid problems with jq...
205
223
runs-on : ubuntu-20.04
206
224
env :
207
- IMG_TAG : ${{ matrix.os }}-latest
225
+ BUILDAH_FORMAT : oci
226
+ IMG_TAG : default-${{ matrix.os }}-${{ matrix.arch }}
208
227
steps :
209
228
- uses : actions/checkout@v3
210
229
- uses : nolar/setup-k3d-k3s@v1
@@ -213,17 +232,17 @@ jobs:
213
232
- name : Download ad server image
214
233
215
234
with :
216
- image : " samba-ad-server:${{ matrix.os }}-latest "
235
+ image : " samba-ad-server:${{ env.IMG_TAG }}"
217
236
container_engine : ${{ env.CONTAINER_CMD }}
218
237
- name : import ad server image
219
- run : k3d image import samba-ad-server:${{ matrix.os }}-latest
238
+ run : k3d image import samba-ad-server:${{ env.IMG_TAG }}
220
239
- name : Download file server image
221
240
222
241
with :
223
- image : " samba-server:${{ matrix.os }}-latest "
242
+ image : " samba-server:${{ env.IMG_TAG }}"
224
243
container_engine : ${{ env.CONTAINER_CMD }}
225
244
- name : import file server image
226
- run : k3d image import samba-server:${{ matrix.os }}-latest
245
+ run : k3d image import samba-server:${{ env.IMG_TAG }}
227
246
- name : run the ad-dc deployment test
228
247
run : ./tests/test-samba-ad-server-kubernetes.sh
229
248
@@ -238,7 +257,8 @@ jobs:
238
257
# need to explicitly use 20.04 to avoid problems with jq...
239
258
runs-on : ubuntu-20.04
240
259
env :
241
- IMG_TAG : ${{ matrix.os }}-nightly
260
+ BUILDAH_FORMAT : oci
261
+ IMG_TAG : nightly-${{ matrix.os }}-${{ matrix.arch }}
242
262
steps :
243
263
- uses : actions/checkout@v3
244
264
- uses : nolar/setup-k3d-k3s@v1
@@ -247,17 +267,17 @@ jobs:
247
267
- name : Download nightly ad server image
248
268
249
269
with :
250
- image : " samba-ad-server:${{ matrix.os }}-nightly "
270
+ image : " samba-ad-server:${{ env.IMG_TAG }}"
251
271
container_engine : ${{ env.CONTAINER_CMD }}
252
272
- name : import nightly ad server image
253
- run : k3d image import samba-ad-server:${{ matrix.os }}-nightly
273
+ run : k3d image import samba-ad-server:${{ env.IMG_TAG }}
254
274
- name : Download nightly file server image
255
275
256
276
with :
257
- image : " samba-server:${{ matrix.os }}-nightly "
277
+ image : " samba-server:${{ env.IMG_TAG }}"
258
278
container_engine : ${{ env.CONTAINER_CMD }}
259
279
- name : import nightly file server image
260
- run : k3d image import samba-server:${{ matrix.os }}-nightly
280
+ run : k3d image import samba-server:${{ env.IMG_TAG }}
261
281
- name : run the ad-dc deployment test
262
282
run : ./tests/test-samba-ad-server-kubernetes.sh
263
283
0 commit comments