Commit ec8efa2b authored by Michael Leu's avatar Michael Leu 🌿
Browse files

Merge branch 'fix/scripts-set-e' into 'master'

fix: exit shell scripts immediately if error occurs

See merge request !47
parents 8bff4c2a ce2f9bcf
Pipeline #134200 passed with stages
in 4 minutes and 46 seconds
#!/bin/bash
set -e
kubectl create secret -n "$NAMESPACE" \
docker-registry $IMAGE_PULL_SECRET \
--docker-server="$CI_REGISTRY" \
......
#!/bin/bash
set -e
RELEASE_NAME=${CUSTOMER_NAME}-${APP_NAME}-${CI_ENVIRONMENT_SLUG}
echo "Delete $RELEASE_NAME"
helm3 uninstall "$RELEASE_NAME" --namespace "$NAMESPACE"
#!/bin/bash
set -e
echo "Deploy to kubernetes"
RELEASE_NAME=${CUSTOMER_NAME}-${APP_NAME}-${CI_ENVIRONMENT_SLUG}
......
#!/bin/bash
set -e
echo "Ensure Namespace $NAMESPACE"
kubectl describe namespace "$NAMESPACE" || kubectl create namespace "$NAMESPACE"
......@@ -11,7 +11,7 @@ image:
variables:
HELM_EXPERIMENTAL_OCI: 1
AUTO_RELEASE: "true"
PIPELINE_IMAGE_TAG: e327fbc84a4944a28b380427de9bd96752fac5ce
PIPELINE_IMAGE_TAG: cc3f8a45e369dd8b4f4c2717d8b4f14b4de9bb55
stages:
- lint
......
......@@ -12,7 +12,7 @@ include:
- /includes/open-mr.yml
variables:
PIPELINE_IMAGE_TAG: e327fbc84a4944a28b380427de9bd96752fac5ce
PIPELINE_IMAGE_TAG: cc3f8a45e369dd8b4f4c2717d8b4f14b4de9bb55
image: git.panter.ch:5001/catladder/gitlab-ci/pipeline:$PIPELINE_IMAGE_TAG
......
......@@ -12,7 +12,7 @@ include:
- /includes/open-mr.yml
variables:
PIPELINE_IMAGE_TAG: e327fbc84a4944a28b380427de9bd96752fac5ce
PIPELINE_IMAGE_TAG: cc3f8a45e369dd8b4f4c2717d8b4f14b4de9bb55
CUSTOMER_NAME: panter
APP_NAME: demo
COMPONENT_NAME: web
......
Supports Markdown
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