diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000000000000000000000000000000000000..2e8fc1032ca33300c9969f84e864ed1d9031e781 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,41 @@ +stages: + - build + - deploy + +build: + image: ubuntu + stage: build + script: + - apt update + - apt install -y python3 + - mkdir -p /opt/strudle2/ + - python3 -m venv /opt/strudel2/tes + - source /opt/strudel2/tes/bin/activate + - pip install ./setup.py + artifacts: + paths: + - /opt/strudel2/tes + +deploy_test: + stage: deploy + only: + - testing@hpc-team/strudelv2_spa + tags: + - deploy_test + script: + - echo "deploying test" + dependencies: + - build + +deploy_dev: + stage: deploy + only: + - dev@hpc-team/strudelv2_spa + tags: + - deploy_dev + script: + - echo "deploying dev" + - ls -l + - ./install.sh + dependencies: + - build