k8s.io/test-infra@v0.0.0-20240520184403-27c6b4c223d8/config/jobs/kubernetes/sig-k8s-infra/trusted/releng/releng-gcr-to-ar-sync.yaml (about) 1 # If you are adding new AR regions, you need to run this job for a while and then add the manifests in k/k8s.io 2 periodics: 3 - name: gcr-to-ar-sync-us 4 cron: "0 */2 * * *" # 2h 5 # cron: "0 0 31 4 *" # 31st of April 6 cluster: k8s-infra-prow-build-trusted 7 decorate: true 8 max_concurrency: 1 9 annotations: 10 testgrid-dashboards: sig-k8s-infra-k8sio 11 testgrid-alert-email: k8s-infra-alerts@kubernetes.io 12 testgrid-num-failures-to-alert: '1' 13 rerun_auth_config: 14 github_team_slugs: 15 - org: kubernetes 16 slug: sig-k8s-infra-leads 17 - org: kubernetes 18 slug: release-managers 19 spec: 20 serviceAccountName: k8s-infra-gcr-promoter 21 containers: 22 - image: public.ecr.aws/docker/library/golang:1.19 23 imagePullPolicy: Always 24 command: 25 - /bin/bash 26 args: 27 - -c 28 - | 29 export PATH=$PATH:$GOPATH/bin 30 apt update && apt install parallel -qqy 31 go install github.com/google/go-containerregistry/cmd/gcrane@latest 32 parallel "gcrane cp --recursive --allow-nondistributable-artifacts us.gcr.io/k8s-artifacts-prod {}-docker.pkg.dev/k8s-artifacts-prod/images" ::: asia-east2 europe-west3 southamerica-east1 33 gcrane cp --recursive --allow-nondistributable-artifacts us.gcr.io/k8s-artifacts-prod gcr.io/k8s-artifacts-prod