[gvfs/fix-ci: 1/2] ci: Port from docker to podman
- From: Ondrej Holy <oholy src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gvfs/fix-ci: 1/2] ci: Port from docker to podman
- Date: Fri, 28 Feb 2020 09:46:40 +0000 (UTC)
commit 4261471ce065f7a8f67c6160103233a4c4a910a7
Author: Ondrej Holy <oholy redhat com>
Date: Wed Feb 19 16:02:12 2020 +0100
ci: Port from docker to podman
Runners are now unprivileged. Let's try to use podman instead of docker.
.gitlab-ci.yml | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index caa9e54d..0fa8fa3e 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -33,15 +33,15 @@ gnome-build-meta-manual:
update-image:
variables:
- DOCKER_TLS_CERTDIR: ""
- image: docker:latest
- services:
- - docker:dind
+ STORAGE_DRIVER: vfs
+ image: fedora:rawhide
script:
- - docker build --tag $CI_REGISTRY_IMAGE .gitlab-ci/
- - docker tag $CI_REGISTRY_IMAGE "$CI_REGISTRY_IMAGE:v$CI_JOB_ID"
- - docker login $CI_REGISTRY -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD
- - docker push $CI_REGISTRY_IMAGE
+ - dnf install -y podman
+ - sed -i '/^mountopt =.*/d' /etc/containers/storage.conf
+ - podman build --format=docker --tag $CI_REGISTRY_IMAGE .gitlab-ci/
+ - podman tag $CI_REGISTRY_IMAGE "$CI_REGISTRY_IMAGE:v$CI_JOB_ID"
+ - podman login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY
+ - podman push $CI_REGISTRY_IMAGE
when: manual
only:
variables:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]