@@ -223,23 +223,14 @@ jobs:
223
223
--build-arg RONDB_TARBALL_LOCAL_REMOTE=remote \
224
224
--build-arg RONDB_X86_TARBALL_URI=${{ inputs.base_download_url }}/${{ inputs.rondb_x86_tarball_name }}
225
225
226
- - name : Push standard versioned image
226
+ - name : Push versioned image
227
227
if : github.repository == 'logicalclocks/rondb-docker' && (startsWith(github.ref_name, 'release-') || github.ref_name == 'main')
228
228
run : |
229
229
NEW_IMAGE_ID=hopsworks/$X86_IMAGE_ID
230
230
231
231
docker tag $X86_IMAGE_ID $NEW_IMAGE_ID
232
232
docker push $NEW_IMAGE_ID
233
233
234
- - name : Push with tag `<rondb-version>-latest`
235
- # Our "latest" branch points to the latest *release* branch.
236
- if : needs.process-info.outputs.is_highest_release == 'true'
237
- run : |
238
- NEW_IMAGE_ID=hopsworks/$X86_IMAGE_NAME:${{ inputs.rondb_version }}-latest
239
-
240
- docker tag $X86_IMAGE_ID $NEW_IMAGE_ID
241
- docker push $NEW_IMAGE_ID
242
-
243
234
- name : Push with tag `latest`
244
235
if : ${{ needs.process-info.outputs.is_highest_release == 'true' && inputs.is_latest_rondb_release }}
245
236
run : |
@@ -276,11 +267,9 @@ jobs:
276
267
ARM_IMAGE_NAME="${{ needs.process-info.outputs.arm_image_name }}"
277
268
278
269
TAGS="--tag hopsworks/$ARM_IMAGE_NAME:${{ inputs.rondb_version }}-$VERSION"
279
- if [[ "${{ needs.process-info.outputs.is_highest_release }}" == "true" ]]; then
280
- TAGS+=" --tag hopsworks/$ARM_IMAGE_NAME:${{ inputs.rondb_version }}-latest"
281
- if [[ "${{ inputs.is_latest_rondb_release }}" == "true" ]]; then
282
- TAGS+=" --tag hopsworks/$ARM_IMAGE_NAME:latest"
283
- fi
270
+ if [[ "${{ needs.process-info.outputs.is_highest_release }}" == "true" &&
271
+ "${{ inputs.is_latest_rondb_release }}" == "true" ]]; then
272
+ TAGS+=" --tag hopsworks/$ARM_IMAGE_NAME:latest"
284
273
fi
285
274
286
275
docker buildx build . \
@@ -332,16 +321,11 @@ jobs:
332
321
hopsworks/$X86_IMAGE_NAME:${{ inputs.rondb_version }}-$VERSION \
333
322
hopsworks/$ARM_IMAGE_NAME:${{ inputs.rondb_version }}-$VERSION
334
323
335
- if [[ "${{ needs.process-info.outputs.is_highest_release }}" == "true" ]]; then
336
- docker buildx imagetools create -t $repo_url/hopsworks/$MULTI_IMAGE_NAME:${{ inputs.rondb_version }}-latest \
337
- hopsworks/$X86_IMAGE_NAME:${{ inputs.rondb_version }}-latest \
338
- hopsworks/$ARM_IMAGE_NAME:${{ inputs.rondb_version }}-latest
339
-
340
- if [[ "${{ inputs.is_latest_rondb_release }}" == "true" ]]; then
341
- docker buildx imagetools create -t $repo_url/hopsworks/$MULTI_IMAGE_NAME:latest \
342
- hopsworks/$X86_IMAGE_NAME:latest \
343
- hopsworks/$ARM_IMAGE_NAME:latest
344
- fi
324
+ if [[ "${{ needs.process-info.outputs.is_highest_release }}" == "true" &&
325
+ "${{ inputs.is_latest_rondb_release }}" == "true" ]]; then
326
+ docker buildx imagetools create -t $repo_url/hopsworks/$MULTI_IMAGE_NAME:latest \
327
+ hopsworks/$X86_IMAGE_NAME:latest \
328
+ hopsworks/$ARM_IMAGE_NAME:latest
345
329
fi
346
330
347
331
done
0 commit comments