From 403e7af4480f7a5f7315567c8fe78db5cdc095db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vicente=20Mataix=20Ferr=C3=A1ndiz?= <tote1989@gmail.com> Date: Tue, 4 May 2021 16:04:51 +0200 Subject: [PATCH] Adding to CI --- .gitlab-ci.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index ead53d2..7397618 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -2,6 +2,7 @@ image: docker stages: - build + - lottery build_docker: stage: build @@ -16,3 +17,17 @@ build_docker: - docker build -f docker/Dockerfile -t $CI_REGISTRY/$CI_PROJECT_PATH:latest . - docker container prune - docker push $CI_REGISTRY/$CI_PROJECT_PATH:latest + +lottery: + image: ubuntu:latest + stage: lottery + tags: + - linux + only: + - merge_requests + script: + - export DEBIAN_FRONTEND=noninteractive + - apt-get -y update + - apt-get -y install python3 + - python3 ./Scripts/lottery.py + -- GitLab