[pitivi/sdk] ci: Replace docker with podman
- From: Alexandru Băluț <alexbalut src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi/sdk] ci: Replace docker with podman
- Date: Sat, 5 Dec 2020 00:47:58 +0000 (UTC)
commit d006fd5e8e66098237eb1dd72cb9612489ad16ed
Author: Alexandru Băluț <alexandru balut gmail com>
Date: Sat Dec 5 01:47:06 2020 +0100
ci: Replace docker with podman
Fixes #2492
.gitlab-ci.yml | 25 +++++++++----------------
1 file changed, 9 insertions(+), 16 deletions(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index da94bcc1a..ce1bfa05f 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,6 +1,6 @@
---
stages:
- - docker_image
+ - tests_runner_image
- build
- deploy
@@ -12,21 +12,13 @@ variables:
pitivi:master:
- stage: docker_image
- tags:
- - privileged
- image: docker:latest
- variables:
- DOCKER_DRIVER: overlay2
- DOCKER_TLS_CERTDIR: ""
- services:
- - docker:19.03.0-dind
+ stage: tests_runner_image
script:
# https://stackoverflow.com/questions/2264428/converting-string-to-lower-case-in-bash#2264537
- export NAMESPACE="$(echo "${CI_PROJECT_NAMESPACE}" | tr A-Z a-z)"
- export BRANCH=master
- export IMAGE="${CI_REGISTRY}/${NAMESPACE}/${CI_PROJECT_NAME}:${BRANCH}-sdk_3.36"
- - export BASE_IMAGE="registry.gitlab.gnome.org/gnome/gnome-runtime-images/gnome:3.36"
+ - export BASE_IMAGE="registry.gitlab.gnome.org/gnome/gnome-runtime-images/gnome:3.38"
- export TMPIMAGENAME="tmp-pitivi-${BRANCH}-sdk_3.36"
- export BUILDDIR="\${HOME}/pitivi"
- export CLONE_PITIVI="git clone ${CI_PROJECT_URL}.git --single-branch \${HOME}/pitivi -b
${CI_COMMIT_REF_NAME}"
@@ -34,11 +26,12 @@ pitivi:master:
- env
- - docker run --privileged --name ${TMPIMAGENAME} ${BASE_IMAGE} bash -c "${CLONE_PITIVI} &&
${BUILD_PITIVI} && rm -Rf ${BUILDDIR}"
- - docker commit ${TMPIMAGENAME} ${IMAGE}
- - docker rm ${TMPIMAGENAME}
- - docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY
- - docker push ${IMAGE}
+ - sudo dnf -y install podman
+ - podman run --name ${TMPIMAGENAME} ${BASE_IMAGE} bash -c "${CLONE_PITIVI} && ${BUILD_PITIVI} && rm -Rf
${BUILDDIR}"
+ - podman commit ${TMPIMAGENAME} ${IMAGE}
+ - podman rm ${TMPIMAGENAME}
+ - podman login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY
+ - podman push ${IMAGE}
only:
- triggers
- schedules
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]