before_script: - rm -rf ./script-cicd-ps - git clone git@gitlab.com:eic-stopfires/common-cicd-scripts-ps.git script-cicd-ps stages: - build - stage-deploy - prod-deploy build: stage: build script: - echo "Build the app" - ./script-cicd-ps/increment.ps1 - ./build.ps1 - ./test.ps1 - ./package.ps1 - ./tag.ps1 - ./script-cicd-ps/publish.ps1 - ./release.ps1 after_script: - ./clean.ps1 artifacts: paths: - component.json stage_deploy: stage: stage-deploy script: - echo "Deploy into staging environment" - ./script-cicd-ps/ci_deploy.ps1 - ./script-cicd-ps/system_test.ps1 - ./script-cicd-ps/ci_rollback.ps1 variables: ENVIRONMENT: stage environment: name: stage dependencies: - build when: manual prod_deploy: stage: prod-deploy script: - echo "Deploy into production environment" - ./script-cicd-ps/ci_deploy.ps1 - ./script-cicd-ps/system_test.ps1 - ./script-cicd-ps/ci_rollback.ps1 variables: ENVIRONMENT: prod environment: name: prod dependencies: - build when: manual