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
No related branches found
No related tags found
No related merge requests found
variables:
GIT_SUBMODULE_STRATEGY: recursive
GIT_SUBMODULE_FORCE_HTTPS: "true"
SECURE_FILES_DOWNLOAD_PATH: './'
stages: stages:
- deploy - deploy
...@@ -6,15 +11,15 @@ deploy: ...@@ -6,15 +11,15 @@ deploy:
stage: deploy stage: deploy
tags: tags:
- dojo_backend_deployment - dojo_backend_deployment
variables:
GIT_SUBMODULE_STRATEGY: recursive
GIT_SUBMODULE_FORCE_HTTPS: "true"
SECURE_FILES_DOWNLOAD_PATH: './'
script: script:
- apk update
- apk add jq
- >
VERSION=$(jq -r .version API/package.json)
# Download secure files # Download secure files
- curl --silent "https://gitlab.com/gitlab-org/incubation-engineering/mobile-devops/download-secure-files/-/raw/main/installer" | bash - curl --silent "https://gitlab.com/gitlab-org/incubation-engineering/mobile-devops/download-secure-files/-/raw/main/installer" | bash
# Prepare environment # Prepare environment
- mv env .env - mv env_$VERSION .env
- cp .env API/.env - cp .env API/.env
# Deploy # Deploy
- ./infra --run - ./infra --run
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment