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

pipeline updates for the main branch

parent db449ebf
No related branches found
No related tags found
16 merge requests!71A pipeline Job rename,!69Workflow updates,!68Workflow updates,!67Workflow updates,!65updated logic of the test-job,!63updated logic of the test-job,!61updated logic of the test-job,!59updated logic of the test-job,!57updated logic of the test-job,!55added "create-release-tag" job,!54updated logic of the test-job,!53Workflow updates,!51updated logic of the test-job,!49updated logic of the test-job,!48updated logic of the test-job,!46updated logic of the test-job
workflow:
rules:
- if: >-
$CI_COMMIT_BRANCH == "staging" || $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
- if: '$CI_COMMIT_BRANCH == "staging" || $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH'
when: always
- when: never
......@@ -130,7 +129,7 @@ deploy-image:
variables:
ENVIRONMENT_NAME: 'staging'
STATIC_IP: 'staging-todoapp-ip'
- if: $CI_COMMIT_REF_NAME !~ /main/
- if: $CI_COMMIT_REF_NAME =~ /main/
when: 'always'
variables:
ENVIRONMENT_NAME: 'production'
......@@ -150,6 +149,3 @@ deploy-image:
- kubectl apply -f service.yaml --namespace "${ENVIRONMENT_NAME}-${K8S_NAMESPACE}"
- INGRESS_MANIFEST=$(sed -e "s,{{static-ip-name}},${STATIC_IP},g" ./ingress.yaml.tmpl)
- echo "${INGRESS_MANIFEST}" | kubectl apply --namespace "${ENVIRONMENT_NAME}-${K8S_NAMESPACE}" --filename -
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