[nautilus/wip/oholy/ci-improvements: 4/4] ci: Adapt update image job for fedora:latest




commit fba15abe385613870298fae15a0f6ae51036a221
Author: Ondrej Holy <oholy redhat com>
Date:   Wed Aug 11 10:54:04 2021 +0200

    ci: Adapt update image job for fedora:latest
    
    Currently, the update image job is based on fedora:33, which will be
    soon EOL. Let's make it work with fedora:latest instead.

 .gitlab-ci.yml | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 37ddf89eb..ade3f587e 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -58,7 +58,7 @@ update image:
          STORAGE_DRIVER: vfs
          BUILDAH_FORMAT: docker
          BUILDAH_ISOLATION: chroot
-    image: registry.fedoraproject.org/fedora:33
+    image: registry.fedoraproject.org/fedora:latest
     stage: image
     script:
         - dnf install -y buildah runc
@@ -66,8 +66,8 @@ update image:
         - buildah bud --tag $CI_REGISTRY_IMAGE -f .gitlab/Dockerfile
         - buildah tag $CI_REGISTRY_IMAGE "$CI_REGISTRY_IMAGE:v$CI_JOB_ID"
         - buildah login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
-        - buildah push $CI_REGISTRY_IMAGE
-        - buildah push "$CI_REGISTRY_IMAGE:v$CI_JOB_ID"
+        - buildah push --creds $CI_REGISTRY_USER:$CI_REGISTRY_PASSWORD $CI_REGISTRY_IMAGE
+        - buildah push --creds $CI_REGISTRY_USER:$CI_REGISTRY_PASSWORD "$CI_REGISTRY_IMAGE:v$CI_JOB_ID"
     when: manual
     except:
         refs:


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