public inbox for igt-dev@lists.freedesktop.org
 help / color / mirror / Atom feed
* [igt-dev] [PATCH i-g-t 1/2] .gitlab-ci/skopeo: Provide credentials on the cmd line
@ 2019-12-03  9:34 Arkadiusz Hiler
  2019-12-03  9:34 ` [igt-dev] [PATCH i-g-t 2/2] .gitlab-ci: Use fixed version of image builder container Arkadiusz Hiler
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Arkadiusz Hiler @ 2019-12-03  9:34 UTC (permalink / raw)
  To: igt-dev; +Cc: Petri Latvala

Newer version of skopeo seems to be broken when it comes to using the
credentials file. Let's workaround this by providing them on the cmd
line.

Signed-off-by: Arkadiusz Hiler <arkadiusz.hiler@intel.com>
---
 .gitlab-ci/pull-or-rebuild.sh | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/.gitlab-ci/pull-or-rebuild.sh b/.gitlab-ci/pull-or-rebuild.sh
index a9409db8..4f77431b 100755
--- a/.gitlab-ci/pull-or-rebuild.sh
+++ b/.gitlab-ci/pull-or-rebuild.sh
@@ -50,14 +50,16 @@ if [ "$TYPE" = "base" ]; then
 		podman push $DOCKERNAME
 	fi
 
-	skopeo copy docker://$DOCKERNAME docker://$COMMITNAME
+	skopeo copy --dest-creds $CI_REGISTRY_USER:$CI_REGISTRY_PASSWORD \
+               docker://$DOCKERNAME docker://$COMMITNAME
 elif [ "$TYPE" = "igt" ]; then
 	# container with IGT, we don't care about Dockerfile changes
 	# we always rebuild
 	set -e
 	$PODMAN_BUILD -t $COMMITNAME -f $DOCKERFILE .
 	podman push $COMMITNAME
-	skopeo copy docker://$COMMITNAME docker://$REFNAME
+	skopeo copy --dest-creds $CI_REGISTRY_USER:$CI_REGISTRY_PASSWORD \
+               docker://$COMMITNAME docker://$REFNAME
 else
 	echo "unknown build type $TYPE"
 	exit 1
-- 
2.23.0

_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2019-12-03 15:30 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-12-03  9:34 [igt-dev] [PATCH i-g-t 1/2] .gitlab-ci/skopeo: Provide credentials on the cmd line Arkadiusz Hiler
2019-12-03  9:34 ` [igt-dev] [PATCH i-g-t 2/2] .gitlab-ci: Use fixed version of image builder container Arkadiusz Hiler
2019-12-03 10:46 ` [igt-dev] [PATCH i-g-t 1/2] .gitlab-ci/skopeo: Provide credentials on the cmd line Petri Latvala
2019-12-03 11:31 ` [igt-dev] ✓ Fi.CI.BAT: success for series starting with [i-g-t,1/2] " Patchwork
2019-12-03 15:30 ` [igt-dev] ✓ Fi.CI.IGT: " Patchwork

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox