Commit 710e66bb authored by Gerry Gunzenhauser's avatar Gerry Gunzenhauser

Add image pull secret option

parent 0b4c5ac0
Pipeline #2545 passed with stage
in 18 seconds
......@@ -17,6 +17,14 @@ else
export INGRESS_SSL_ANNOTATION=''
fi
if [ ! -z "${IMAGE_PULL_SECRET}" ]; then
export IMAGE_PULL_SECRET_SNIPPET='imagePullSecrets:
- name: bla
'
else
export IMAGE_PULL_SECRET_SNIPPET=''
fi
export CONTAINER_HTTP_PORT="${CONTAINER_HTTP_PORT:-$CONTAINER_HTTP_PORT}"
if [[ -z "$CI_ENVIRONMENT_URL" ]]; then
......@@ -64,6 +72,7 @@ spec:
name: $CI_ENVIRONMENT_SLUG
app: $CI_ENVIRONMENT_SLUG
spec:
$IMAGE_PULL_SECRET_SNIPPET
containers:
- name: app
image: $CI_REGISTRY_IMAGE:$CI_REGISTRY_TAG
......
Markdown is supported
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