summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorOndrej Holy <oholy@redhat.com>2021-10-08 12:55:56 +0200
committerOndrej Holy <oholy@redhat.com>2021-10-11 06:45:26 +0000
commitcf9d7a6ebb7d09d98b0283cc1f49947e99997255 (patch)
treef33d330b5882f2829086c3eff2e15e1a68abe544 /.gitlab-ci.yml
parent7b469dfa8772f119d516600628d6c734e6de534b (diff)
downloadnautilus-cf9d7a6ebb7d09d98b0283cc1f49947e99997255.tar.gz
ci: Make the update image job work with fedora:latest
For some reason, "buildah login" is not enough with fedora:latest and "buildah push --creds" needs to be used to make it work again.
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml6
1 files changed, 3 insertions, 3 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index ef12ec992..aff5e8ab4 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -44,7 +44,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
@@ -52,8 +52,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
only:
- web