[tracker-oci-images/sam/podman] Use correct credentials to push the image



commit a9df863fcaf3b53b76bee89dcc670a2114d9ad6e
Author: Sam Thursfield <sam afuera me uk>
Date:   Wed Dec 11 11:42:07 2019 +0100

    Use correct credentials to push the image
    
    Following GitLab's documentation, the 'gitlab-ci-token' user only has
    read access to the registry.  Let's use $CI_REGISTRY_USER instead.
    
    Based on https://gitlab.gnome.org/help/ci/docker/using_docker_build.md#container-registry-examples

 .gitlab-ci.yml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index dbfb370..638630b 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -14,7 +14,7 @@ variables:
 .base:
   script:
     - dnf install -y buildah podman
-    - buildah login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY
+    - buildah login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
 
     # Newer versions of podman/buildah try to set overlayfs mount options when
     # using the vfs driver, and this causes errors.


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]