diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index eca9aafad053ad29190e5da82dca6208561525b2..0507bcdb6096119d55f34305a1ebe483e806230e 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,3 +1,8 @@ +variables: + GIT_SUBMODULE_STRATEGY: recursive + GIT_SUBMODULE_FORCE_HTTPS: "true" + SECURE_FILES_DOWNLOAD_PATH: './' + stages: - deploy @@ -6,15 +11,15 @@ deploy: stage: deploy tags: - dojo_backend_deployment - variables: - GIT_SUBMODULE_STRATEGY: recursive - GIT_SUBMODULE_FORCE_HTTPS: "true" - SECURE_FILES_DOWNLOAD_PATH: './' script: + - apk update + - apk add jq + - > + VERSION=$(jq -r .version API/package.json) # Download secure files - curl --silent "https://gitlab.com/gitlab-org/incubation-engineering/mobile-devops/download-secure-files/-/raw/main/installer" | bash # Prepare environment - - mv env .env + - mv env_$VERSION .env - cp .env API/.env # Deploy - ./infra --run diff --git a/API b/API index 390c277c4a283e4b202aed09becd3fb5e378e819..fc95c7c0f0df6f8db3a69a928ae3952a9edfde8e 160000 --- a/API +++ b/API @@ -1 +1 @@ -Subproject commit 390c277c4a283e4b202aed09becd3fb5e378e819 +Subproject commit fc95c7c0f0df6f8db3a69a928ae3952a9edfde8e