Commit 9b82c13f authored by Heimo Stranner's avatar Heimo Stranner
Browse files

add explicit to in order to circumvent image cleaning - only latest and the...

add explicit to in order to circumvent image cleaning - only latest and the highest numeric tag will be kept, to is needed to indirectly support tags like 17-jdk-alpine by no longer making it a tag but part of the image name
parent 0c5da345
Loading
Loading
Loading
Loading
+6 −4
Original line number Diff line number Diff line
@@ -40,21 +40,23 @@ build-debian-mvn:

.mirror-base:
  stage: build
  resource_group: lock_docker_build_$FROM
  resource_group: lock_docker_build_$FROM_$TO
  retry: 2
  script:
    - docker pull $FROM
    - docker tag $FROM registry.reset.inso-w.at/pub/docker/$FROM
    - docker tag $FROM registry.reset.inso-w.at/pub/docker/$TO
    - echo $DEPLOY_TOKEN | docker login registry.reset.inso-w.at -u registry-token --password-stdin
    - docker push registry.reset.inso-w.at/pub/docker/$FROM
    - docker rmi registry.reset.inso-w.at/pub/docker/$FROM
    - docker push registry.reset.inso-w.at/pub/docker/$TO
    - docker rmi registry.reset.inso-w.at/pub/docker/$TO

sync-temurin:
  extends: .mirror-base
  variables:
    FROM: eclipse-temurin:17
    TO: eclipse-temurin:17

sync-openjdk-alpine:
  extends: .mirror-base
  variables:
    FROM: openjdk:17-jdk-alpine
    TO: openjdk-17-jdk-alpine