Skip to content
Snippets Groups Projects
Commit 68c45044 authored by michael.minelli's avatar michael.minelli
Browse files

CI/CD => Get env file from specifiq version uploaded in protected files

parent c8e69485
Branches
No related tags found
No related merge requests found
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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment