Efforts to once again support amazon ECR as a docker registry for GitLab Runner's images

Timeline:

Fish scripts to sync images across repositories with scopeo

copy-helper-images.fish

#!/bin/fish

set VERSION $argv[1]
set FROM registry.gitlab.com/gitlab-org/gitlab-runner
set TO public.ecr.aws/gitlab

echo "syncing helper images for version $VERSION"

TAG=alpine-latest-arm-$VERSION skopeo copy --all docker://$FROM/gitlab-runner-helper:$TAG docker://$TO/gitlab-runner-helper:$TAG
TAG=alpine-latest-arm64-$VERSION skopeo copy --all docker://$FROM/gitlab-runner-helper:$TAG docker://$TO/gitlab-runner-helper:$TAG
TAG=alpine-latest-ppc64le-$VERSION skopeo copy --all docker://$FROM/gitlab-runner-helper:$TAG docker://$TO/gitlab-runner-helper:$TAG
TAG=alpine-latest-s390x-$VERSION skopeo copy --all docker://$FROM/gitlab-runner-helper:$TAG docker://$TO/gitlab-runner-helper:$TAG
TAG=alpine-latest-x86_64-$VERSION skopeo copy --all docker://$FROM/gitlab-runner-helper:$TAG docker://$TO/gitlab-runner-helper:$TAG
TAG=alpine3.12-arm-$VERSION skopeo copy --all docker://$FROM/gitlab-runner-helper:$TAG docker://$TO/gitlab-runner-helper:$TAG
TAG=alpine3.12-arm64-$VERSION skopeo copy --all docker://$FROM/gitlab-runner-helper:$TAG docker://$TO/gitlab-runner-helper:$TAG
TAG=alpine3.12-ppc64le-$VERSION skopeo copy --all docker://$FROM/gitlab-runner-helper:$TAG docker://$TO/gitlab-runner-helper:$TAG
TAG=alpine3.12-s390x-$VERSION skopeo copy --all docker://$FROM/gitlab-runner-helper:$TAG docker://$TO/gitlab-runner-helper:$TAG
TAG=alpine3.12-x86_64-$VERSION skopeo copy --all docker://$FROM/gitlab-runner-helper:$TAG docker://$TO/gitlab-runner-helper:$TAG
TAG=alpine3.12-x86_64-$VERSION-pwsh skopeo copy --all docker://$FROM/gitlab-runner-helper:$TAG docker://$TO/gitlab-runner-helper:$TAG
TAG=alpine3.13-arm-$VERSION skopeo copy --all docker://$FROM/gitlab-runner-helper:$TAG docker://$TO/gitlab-runner-helper:$TAG
TAG=alpine3.13-arm64-$VERSION skopeo copy --all docker://$FROM/gitlab-runner-helper:$TAG docker://$TO/gitlab-runner-helper:$TAG
TAG=alpine3.13-ppc64le-$VERSION skopeo copy --all docker://$FROM/gitlab-runner-helper:$TAG docker://$TO/gitlab-runner-helper:$TAG
TAG=alpine3.13-s390x-$VERSION skopeo copy --all docker://$FROM/gitlab-runner-helper:$TAG docker://$TO/gitlab-runner-helper:$TAG
TAG=alpine3.13-x86_64-$VERSION skopeo copy --all docker://$FROM/gitlab-runner-helper:$TAG docker://$TO/gitlab-runner-helper:$TAG
TAG=alpine3.13-x86_64-$VERSION-pwsh skopeo copy --all docker://$FROM/gitlab-runner-helper:$TAG docker://$TO/gitlab-runner-helper:$TAG
TAG=alpine3.14-arm-$VERSION skopeo copy --all docker://$FROM/gitlab-runner-helper:$TAG docker://$TO/gitlab-runner-helper:$TAG
TAG=alpine3.14-arm64-$VERSION skopeo copy --all docker://$FROM/gitlab-runner-helper:$TAG docker://$TO/gitlab-runner-helper:$TAG
TAG=alpine3.14-ppc64le-$VERSION skopeo copy --all docker://$FROM/gitlab-runner-helper:$TAG docker://$TO/gitlab-runner-helper:$TAG
TAG=alpine3.14-s390x-$VERSION skopeo copy --all docker://$FROM/gitlab-runner-helper:$TAG docker://$TO/gitlab-runner-helper:$TAG
TAG=alpine3.14-x86_64-$VERSION skopeo copy --all docker://$FROM/gitlab-runner-helper:$TAG docker://$TO/gitlab-runner-helper:$TAG
TAG=alpine3.15-arm-$VERSION skopeo copy --all docker://$FROM/gitlab-runner-helper:$TAG docker://$TO/gitlab-runner-helper:$TAG
TAG=alpine3.15-arm64-$VERSION skopeo copy --all docker://$FROM/gitlab-runner-helper:$TAG docker://$TO/gitlab-runner-helper:$TAG
TAG=alpine3.15-ppc64le-$VERSION skopeo copy --all docker://$FROM/gitlab-runner-helper:$TAG docker://$TO/gitlab-runner-helper:$TAG
TAG=alpine3.15-s390x-$VERSION skopeo copy --all docker://$FROM/gitlab-runner-helper:$TAG docker://$TO/gitlab-runner-helper:$TAG
TAG=alpine3.15-x86_64-$VERSION skopeo copy --all docker://$FROM/gitlab-runner-helper:$TAG docker://$TO/gitlab-runner-helper:$TAG
TAG=arm-$VERSION skopeo copy --all docker://$FROM/gitlab-runner-helper:$TAG docker://$TO/gitlab-runner-helper:$TAG
TAG=arm64-$VERSION skopeo copy --all docker://$FROM/gitlab-runner-helper:$TAG docker://$TO/gitlab-runner-helper:$TAG
TAG=ppc64le-$VERSION skopeo copy --all docker://$FROM/gitlab-runner-helper:$TAG docker://$TO/gitlab-runner-helper:$TAG
TAG=s390x-$VERSION skopeo copy --all docker://$FROM/gitlab-runner-helper:$TAG docker://$TO/gitlab-runner-helper:$TAG
TAG=ubi-fips-x86_64-$VERSION skopeo copy --all docker://$FROM/gitlab-runner-helper:$TAG docker://$TO/gitlab-runner-helper:$TAG
TAG=ubuntu-arm-$VERSION skopeo copy --all docker://$FROM/gitlab-runner-helper:$TAG docker://$TO/gitlab-runner-helper:$TAG
TAG=ubuntu-arm64-$VERSION skopeo copy --all docker://$FROM/gitlab-runner-helper:$TAG docker://$TO/gitlab-runner-helper:$TAG
TAG=ubuntu-ppc64le-$VERSION skopeo copy --all docker://$FROM/gitlab-runner-helper:$TAG docker://$TO/gitlab-runner-helper:$TAG
TAG=ubuntu-s390x-$VERSION skopeo copy --all docker://$FROM/gitlab-runner-helper:$TAG docker://$TO/gitlab-runner-helper:$TAG
TAG=ubuntu-x86_64-$VERSION skopeo copy --all docker://$FROM/gitlab-runner-helper:$TAG docker://$TO/gitlab-runner-helper:$TAG
TAG=ubuntu-x86_64-$VERSION-pwsh skopeo copy --all docker://$FROM/gitlab-runner-helper:$TAG docker://$TO/gitlab-runner-helper:$TAG
TAG=x86_64-$VERSION skopeo copy --all docker://$FROM/gitlab-runner-helper:$TAG docker://$TO/gitlab-runner-helper:$TAG
TAG=x86_64-$VERSION-servercore1809 skopeo copy --all docker://$FROM/gitlab-runner-helper:$TAG docker://$TO/gitlab-runner-helper:$TAG
TAG=x86_64-$VERSION-servercore2004 skopeo copy --all docker://$FROM/gitlab-runner-helper:$TAG docker://$TO/gitlab-runner-helper:$TAG
TAG=x86_64-$VERSION-servercore20H2 skopeo copy --all docker://$FROM/gitlab-runner-helper:$TAG docker://$TO/gitlab-runner-helper:$TAG
TAG=x86_64-$VERSION-servercore21H1 skopeo copy --all docker://$FROM/gitlab-runner-helper:$TAG docker://$TO/gitlab-runner-helper:$TAG

copy-runner-images.fish

#!/bin/fish

set VERSION $argv[1]
set FROM registry.gitlab.com/gitlab-org/gitlab-runner
set TO public.ecr.aws/gitlab

echo "syncing runner images for version $VERSION"

TAG=alpine-$VERSION skopeo copy --all docker://$FROM:$TAG docker://$TO/gitlab-runner:$TAG
TAG=alpine3.12-$VERSION skopeo copy --all docker://$FROM:$TAG docker://$TO/gitlab-runner:$TAG
TAG=alpine3.13-$VERSION skopeo copy --all docker://$FROM:$TAG docker://$TO/gitlab-runner:$TAG
TAG=alpine3.14-$VERSION skopeo copy --all docker://$FROM:$TAG docker://$TO/gitlab-runner:$TAG
TAG=alpine3.15-$VERSION skopeo copy --all docker://$FROM:$TAG docker://$TO/gitlab-runner:$TAG
TAG=ubi-fips-$VERSION skopeo copy --all docker://$FROM:$TAG docker://$TO/gitlab-runner:$TAG
TAG=ubuntu-$VERSION skopeo copy --all docker://$FROM:$TAG docker://$TO/gitlab-runner:$TAG
TAG=$VERSION skopeo copy --all docker://$FROM:$TAG docker://$TO/gitlab-runner:$TAG

usage:

$ fish copy-helper-images.fish v15.5.1
$ fish copy-runner-images.fish v15.5.1
Edited by Georgi N. Georgiev | GitLab