[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:29:19 +0000 (UTC)
commit f8fb364ffe7b968368be6bd9c94e00e12c46cb39
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 | 15 ++++++---------
1 file changed, 6 insertions(+), 9 deletions(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index caa9e54d..dbd48b2c 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -32,16 +32,13 @@ 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
+ - 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]