Skip to content
Snippets Groups Projects
Commit 8d6c4902 authored by Dobromir Palushev's avatar Dobromir Palushev
Browse files

updated logic of the test-job

parent c2092b76
No related branches found
No related tags found
10 merge requests!72Production update,!70Production update,!67Workflow updates,!66Css test change,!64Pipeline fix,!62Main update,!60Getting staging's latest state,!58Updating Main,!56Main updates,!54updated logic of the test-job
......@@ -165,12 +165,12 @@ switch-to-https:
stage: upgrade-connection
rules:
- if: $CI_COMMIT_REF_NAME =~ /staging/
when: 'always'
when: manual
variables:
STATIC_IP: staging-todoapp-ip
ENVIRONMENT_NAME: staging
- if: $CI_COMMIT_REF_NAME =~ /main/
when: 'always'
when: manual
variables:
STATIC_IP: todoapp-ip
ENVIRONMENT_NAME: production
......@@ -178,6 +178,6 @@ switch-to-https:
- docker
image: google/cloud-sdk:${GOOGLE_CLOUD_SDK_IMAGE_VERSION}
script:
- INGRESS_MANIFEST=$(sed -e "s,{{static-ip-name}},${STATIC_IP},g" -e "s,{{allowHttpFlag}},true,g" -e "s,{{portNumber}},443,g" ./ingress.yaml.tmpl)
- INGRESS_MANIFEST=$(sed -e "s,{{static-ip-name}},${STATIC_IP},g" -e "s,{{allowHttpFlag}},true,g" -e "s,{{portNumber}},443,g" ./k8s-manifests/ingress.yaml.tmpl)
- echo "${INGRESS_MANIFEST}" | kubectl apply --namespace "${ENVIRONMENT_NAME}-${K8S_NAMESPACE}" --filename -
when: manual
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment