diff options
author | Arkadiusz Hiler <arkadiusz.hiler@intel.com> | 2019-12-03 11:25:09 +0200 |
---|---|---|
committer | Arkadiusz Hiler <arkadiusz.hiler@intel.com> | 2019-12-03 13:11:56 +0200 |
commit | a8a3e49ea2c86e703f954061dcdf1066d5dd29b1 (patch) | |
tree | 31a5cfc333cedb5412ba5101e54e148b3e72968b /.gitlab-ci | |
parent | c7cb730383baae21f9dab4319f51a7e9dce0a843 (diff) |
.gitlab-ci/skopeo: Provide credentials on the cmd line
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>
Reviewed-by: Petri Latvala <petri.latvala@intel.com>
Diffstat (limited to '.gitlab-ci')
-rwxr-xr-x | .gitlab-ci/pull-or-rebuild.sh | 6 |
1 files 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 |