summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2019-12-11 15:02:43 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2019-12-11 15:29:11 +1000
commit6c55880a7dda8ea34ccfaec04dbdbc77306b42b4 (patch)
tree76978697ee125ee919672c29408aacd9e7f8a91c
parent1f49167b690e0d1f2d69492261c2ce88027aecdf (diff)
gitlab CI: fix skopeo copy
skopeo doesn't handle the destination credentials correctly See ci-templates commit 0a9bdd33a98f05af6761ab118b5074952242aab0 Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-rw-r--r--.gitlab-ci.yml9
1 files changed, 6 insertions, 3 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 3999d627..bea3cc72 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -166,8 +166,9 @@ check-commit:
# force rebuild if schedule, reuse otherwise
- if [[ $CI_PIPELINE_SOURCE == "schedule" ]] ; then touch .scheduled; fi
# pull the latest upstream image if it exists
- - test -e .scheduled || skopeo copy docker://$CI_REGISTRY/$UPSTREAM_REPO/$IMAGE
- docker://$CI_REGISTRY_IMAGE/$IMAGE && exit 0 || true ;
+ - test -e .scheduled || skopeo copy --dest-creds $CI_REGISTRY_USER:$CI_REGISTRY_PASSWORD
+ docker://$CI_REGISTRY/$UPSTREAM_REPO/$IMAGE
+ docker://$CI_REGISTRY_IMAGE/$IMAGE && exit 0 || true ;
# check if our image is already in the current registry
- test -e .scheduled || skopeo inspect docker://$CI_REGISTRY_IMAGE/$IMAGE > /dev/null && exit 0 || true ;
@@ -291,7 +292,9 @@ alpine:latest@container-prep:
# push the container image to the libinput registry
- podman push --quiet $FREEBSD_CONTAINER_IMAGE
- - skopeo copy docker://$FREEBSD_CONTAINER_IMAGE docker://$CI_REGISTRY_IMAGE/freebsd/$FREEBSD_VERSION:$CI_JOB_ID
+ - skopeo copy --dest-creds $CI_REGISTRY_USER:$CI_REGISTRY_PASSWORD
+ docker://$FREEBSD_CONTAINER_IMAGE
+ docker://$CI_REGISTRY_IMAGE/freebsd/$FREEBSD_VERSION:$CI_JOB_ID
freebsd:11.2@container-prep:
extends: