Skip to content
Snippets Groups Projects
Verified Commit 713f71df authored by Alex Timmermann's avatar Alex Timmermann
Browse files

ci: ensure only one deployment can run at a time

parent 4f4120f2
No related branches found
No related tags found
No related merge requests found
......@@ -24,9 +24,10 @@ install_dependencies:
- .yarn/
script:
- yarn install --immutable --check-cache
only:
changes:
- yarn.lock
# only:
# changes:
# - yarn.lock
interruptible: true
test:
stage: 'test'
......@@ -39,6 +40,7 @@ test:
image: 'europe-north1-docker.pkg.dev/holi-shared/docker-hub-remote/node:18.20.4'
script:
- yarn test
interruptible: true
build:
stage: 'build'
......@@ -54,6 +56,7 @@ build:
artifacts:
paths:
- dist/
interruptible: true
.deploy:
stage: 'deploy'
......@@ -75,6 +78,7 @@ build:
- apk add zip
- zip -r receiveEvent.zip dist package.json yarn.lock .yarn/ .yarnrc*
- terraform/environments/scripts/create-or-update-env.sh "$ENVIRONMENT_ID" "$CI_COMMIT_SHA"
interruptible: false
staging_deploy:
extends: .deploy
......@@ -82,6 +86,7 @@ staging_deploy:
ENVIRONMENT_ID: 'staging'
only:
- main
resource_group: staging
production_deploy:
extends: .deploy
......@@ -89,3 +94,4 @@ production_deploy:
ENVIRONMENT_ID: 'production'
only:
- production
resource_group: production
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment