Loading capif/templates/cd-deploy-ocf.gitlab-ci.yml +10 −0 Original line number Diff line number Diff line Loading @@ -71,9 +71,17 @@ prep_ocf_cd_staging: echo $CD_ENV_NAME echo $CD_ENV_NAME | rev | cut -c 1-6 | rev echo $(echo $CD_ENV_NAME | rev | cut -c 1-6 | rev) > cd_env_endpoint.txt echo "Setting up a namespace .env file for the staging environment" CI_ENV_ENDPOINT=$(cat cd_env_endpoint.txt) echo "NAMESPACE_DEV_TO_STAGING=$CI_ENV_ENDPOINT" > namespace.env echo "CI_ENV_ENDPOINT=$CI_ENV_ENDPOINT" >> namespace.env echo "Generated namespace: $NAMESPACE_DEV_TO_STAGING" artifacts: paths: - cd_env_endpoint.txt reports: dotenv: namespace.env deploy_ocf_staging: stage: deploy_ocf_staging Loading @@ -97,8 +105,10 @@ deploy_ocf_staging: yq --version echo "NEW version!!!" echo "Before read file key NAMESPACE_DEV_TO_STAGING: $NAMESPACE_DEV_TO_STAGING " export CI_ENV_ENDPOINT=$(cat cd_env_endpoint.txt) export NAMESPACE_DEV_TO_STAGING=$(echo $CI_ENV_ENDPOINT) echo "After read file key NAMESPACE_DEV_TO_STAGING: $NAMESPACE_DEV_TO_STAGING " if [[ -d helm/capif ]]; then echo "### helm capif directory exists ###" Loading Loading
capif/templates/cd-deploy-ocf.gitlab-ci.yml +10 −0 Original line number Diff line number Diff line Loading @@ -71,9 +71,17 @@ prep_ocf_cd_staging: echo $CD_ENV_NAME echo $CD_ENV_NAME | rev | cut -c 1-6 | rev echo $(echo $CD_ENV_NAME | rev | cut -c 1-6 | rev) > cd_env_endpoint.txt echo "Setting up a namespace .env file for the staging environment" CI_ENV_ENDPOINT=$(cat cd_env_endpoint.txt) echo "NAMESPACE_DEV_TO_STAGING=$CI_ENV_ENDPOINT" > namespace.env echo "CI_ENV_ENDPOINT=$CI_ENV_ENDPOINT" >> namespace.env echo "Generated namespace: $NAMESPACE_DEV_TO_STAGING" artifacts: paths: - cd_env_endpoint.txt reports: dotenv: namespace.env deploy_ocf_staging: stage: deploy_ocf_staging Loading @@ -97,8 +105,10 @@ deploy_ocf_staging: yq --version echo "NEW version!!!" echo "Before read file key NAMESPACE_DEV_TO_STAGING: $NAMESPACE_DEV_TO_STAGING " export CI_ENV_ENDPOINT=$(cat cd_env_endpoint.txt) export NAMESPACE_DEV_TO_STAGING=$(echo $CI_ENV_ENDPOINT) echo "After read file key NAMESPACE_DEV_TO_STAGING: $NAMESPACE_DEV_TO_STAGING " if [[ -d helm/capif ]]; then echo "### helm capif directory exists ###" Loading