[extensions-web/barthalion/ci-shared-runners] Run commands in buildah build env
- From: Bartłomiej Piotrowski <bpiotrowski src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [extensions-web/barthalion/ci-shared-runners] Run commands in buildah build env
- Date: Tue, 21 Jul 2020 06:44:11 +0000 (UTC)
commit 6cda56cc609c97dfba7aafe18bd8a13fadf557c2
Author: Bartłomiej Piotrowski <bpiotrowski gnome org>
Date: Tue Jul 21 08:44:05 2020 +0200
Run commands in buildah build env
.gitlab-ci.yml | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 440a050..4d4d314 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -15,5 +15,7 @@ test:
END
- buildah bud -f openshift/docker/Dockerfile -t extensions-web .
- - podman run -e EGO_SECRET_KEY=. -e EGO_DEBUG=1 extensions-web python manage.py test
- - podman run extensions-web bash -c 'pip install safety && safety check -r requirements.txt && safety
check -r requirements.ego.txt'
+ - CONTAINER=$(buildah from extensions-web)
+ - buildah config --env EGO_SECRET_KEY=. --env EGO_DEBUG=1 $CONTAINER
+ - buildah run $CONTAINER python manage.py test
+ - buildah run $CONTAINER bash -c '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]