Fix envsubst invocation in deploy.sh
This commit is contained in:
@@ -54,13 +54,13 @@ if [ -n "${REGISTRY_USER:-}" ] && [ -n "${REGISTRY_PASS:-}" ]; then
|
|||||||
REGISTRY_AUTH="$(printf '%s:%s' "$REGISTRY_USER" "$REGISTRY_PASS" | base64 -w 0)"
|
REGISTRY_AUTH="$(printf '%s:%s' "$REGISTRY_USER" "$REGISTRY_PASS" | base64 -w 0)"
|
||||||
export REGISTRY_USER REGISTRY_PASS REGISTRY_AUTH
|
export REGISTRY_USER REGISTRY_PASS REGISTRY_AUTH
|
||||||
echo "==> Updating registry pull secret ..."
|
echo "==> Updating registry pull secret ..."
|
||||||
envsubst \u003c "./k8s/registry-secret.yaml" | kubectl apply -f -
|
envsubst < "./k8s/registry-secret.yaml" | kubectl apply -f -
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Update image tag in manifest and apply
|
# Update image tag in manifest and apply
|
||||||
export TAG
|
export TAG
|
||||||
export NAMESPACE
|
export NAMESPACE
|
||||||
envsubst \u003c "./k8s/app.yaml" | kubectl apply -f -
|
envsubst < "./k8s/app.yaml" | kubectl apply -f -
|
||||||
|
|
||||||
# Wait for rollout
|
# Wait for rollout
|
||||||
echo "==> Waiting for rollout ..."
|
echo "==> Waiting for rollout ..."
|
||||||
|
|||||||
Reference in New Issue
Block a user