Skip to content
Snippets Groups Projects
Commit 883ed53c authored by David Mendez's avatar David Mendez
Browse files

Add step to prepare config for staging

parent 255bd70b
No related branches found
No related tags found
1 merge request!1Add deployment to staging
......@@ -16,6 +16,8 @@ variables:
stages:
- build
- test_and_qa
# ----------------------------------------------------------------------------------------------------------------------
# build
......@@ -54,3 +56,23 @@ unit_tests:
- set -x
- echo 'Implement these tests!'
# ----------------------------------------------------------------------------------------------------------------------
# Prepare Configuration
# ----------------------------------------------------------------------------------------------------------------------
prepare_config_staging:
stage: prepare_config
image:
name: alpine/git
entrypoint: ["/bin/sh", "-c"]
only:
- staging
tags:
- docker
script:
- set -x
- rm -rf ${CONFIGS_FOLDER} || true
- mkdir -p ${CONFIGS_FOLDER}
- git clone https://${CONFIG_DEPLOY_GITLAB_USERNAME}:${CONFIG_DEPLOY_GITLAB_TOKEN}@${CONFIGURATIONS_REPO} ${CONFIGS_FOLDER}
artifacts:
paths:
- ${ENV_STAGING_FILE_PATH}
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment