summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOndrej Holy <oholy@redhat.com>2021-10-15 09:08:22 +0200
committerOndrej Holy <oholy@redhat.com>2021-10-15 09:08:22 +0200
commit46da4a70dbbc74015c04f4446aa2872806c7ae33 (patch)
tree25267528bf001084b56bdc6a0191cb07df56bcc1
parent78be320a979cc3eac3bb109fee279122adff9daa (diff)
downloadgvfs-46da4a70dbbc74015c04f4446aa2872806c7ae33.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.
-rw-r--r--.gitlab-ci.yml6
1 files changed, 3 insertions, 3 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index b3dfffed..7551abc9 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -16,15 +16,15 @@ update-image:
STORAGE_DRIVER: vfs
BUILDAH_FORMAT: docker
BUILDAH_ISOLATION: chroot
- image: registry.fedoraproject.org/fedora:33
+ image: registry.fedoraproject.org/fedora:latest
script:
- dnf install -y buildah runc
- sed -i '/^mountopt =.*/d' /etc/containers/storage.conf
- buildah bud --tag $CI_REGISTRY_IMAGE -f .gitlab-ci/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:
variables: