diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index e1eb503445268da9de5528758346213a31252b61..7a0ac64d5727f3c77c91391a927e3b9f4b994e56 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,6 +1,10 @@ +stages: + - build + - deploy -test: +build: image: ubuntu + stage: build only: - branches@hpc-deam/strudelv2_spa except: @@ -16,9 +20,11 @@ test: - npm install - ./node_modules/@angular/cli/bin/ng build --prod --base-href=/sv2/ artifacts: - - ./dist/ + paths: + - ./dist/ deploy_test: + stage: deploy only: - testing@hpc-team/strudelv2_spa tags: @@ -27,13 +33,11 @@ deploy_test: - echo "deploying test" deploy_dev: + stage: deploy only: - dev@hpc-team/strudelv2_spa tags: - deploy_dev script: - echo "deploying dev" - - rm ./package-lock.json - - npm install - - ./node_modules/@angular/cli/bin/ng build --prod --base-href=/sv2/ - bash ./install.sh