[extensions-web/barthalion/ci-shared-runners] Undockerize
- From: Bartłomiej Piotrowski <bpiotrowski src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [extensions-web/barthalion/ci-shared-runners] Undockerize
- Date: Mon, 20 Jul 2020 17:11:44 +0000 (UTC)
commit 338745324b8d5a08f7ddfc2b1fd51f3a298d028f
Author: Bartłomiej Piotrowski <bpiotrowski gnome org>
Date: Mon Jul 20 19:11:32 2020 +0200
Undockerize
.gitlab-ci.yml | 23 +++++++++--------------
1 file changed, 9 insertions(+), 14 deletions(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index cf537f7..bd73315 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,17 +1,12 @@
-
-variables:
- STORAGE_DRIVER: 'vfs'
- IMAGE_NAME: 'registry.gitlab.gnome.org/infrastructure/extensions-web'
-
test:
stage: build
+ image: python:3.6-stretch
script:
- - dnf install -y buildah podman
- # Newer versions of podman/buildah try to set overlayfs mount options when
- # using the vfs driver, and this causes errors.
- - sed -i '/^mountopt =.*/d' /etc/containers/storage.conf
-
- - useradd --home-dir /build --create-home --shell /bin/bash build
- - su build -c "podman build --cgroup-manager=cgroupfs -f openshift/docker/Dockerfile -t
registry.gitlab.gnome.org/infrastructure/extensions-web:${CI_COMMIT_SHORT_SHA} ."
- - su build -c "podman run --cgroup-manager=cgroupfs -e EGO_SECRET_KEY=. -e EGO_DEBUG=1 extensions-web
python manage.py test"
- - su build -c "podman run extensions-web bash -c 'pip install safety && safety check -r requirements.txt
&& safety check -r requirements.ego.txt'"
+ - openshift/docker/build.sh
+ - pip install -r requirements.txt \
+ - pip install -r requirements.ego.txt \
+ - EGO_SECRET_KEY=- python manage.py compilemessages
+ - EGO_SECRET_KEY=. EGO_DEBUG=1 python manage.py test
+ - pip install safety
+ - safety check -r requirements.txt
+ - safety check -r requirements.ego.txt
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]