[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 10:30:11 +0000 (UTC)
commit caa6aa73967c39145d799eba05ff6d206df6c7d7
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, 7 insertions(+), 9 deletions(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index caa9e54d..88a9681a 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -32,16 +32,14 @@ gnome-build-meta-manual:
except: [tags]
update-image:
- variables:
- DOCKER_TLS_CERTDIR: ""
- image: docker:latest
- services:
- - docker:dind
+ 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 --storage-driver=vfs --security-opt
seccomp=/usr/share/containers/seccomp.json --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]