mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2025-12-27 16:10:07 +01:00
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>
This commit is contained in:
parent
1f49167b69
commit
6c55880a7d
1 changed files with 6 additions and 3 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue