[igt-dev] [PATCH i-g-t 1/2] .gitlab-ci/skopeo: Provide credentials on the cmd line

Petri Latvala petri.latvala at intel.com
Tue Dec 3 10:46:00 UTC 2019


On Tue, Dec 03, 2019 at 11:34:32AM +0200, Arkadiusz Hiler wrote:
> 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 at intel.com>

For the series:

Reviewed-by: Petri Latvala <petri.latvala at 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
> 


More information about the igt-dev mailing list