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)"
|
||||
export REGISTRY_USER REGISTRY_PASS REGISTRY_AUTH
|
||||
echo "==> Updating registry pull secret ..."
|
||||
envsubst \u003c "./k8s/registry-secret.yaml" | kubectl apply -f -
|
||||
envsubst < "./k8s/registry-secret.yaml" | kubectl apply -f -
|
||||
fi
|
||||
|
||||
# Update image tag in manifest and apply
|
||||
export TAG
|
||||
export NAMESPACE
|
||||
envsubst \u003c "./k8s/app.yaml" | kubectl apply -f -
|
||||
envsubst < "./k8s/app.yaml" | kubectl apply -f -
|
||||
|
||||
# Wait for rollout
|
||||
echo "==> Waiting for rollout ..."
|
||||
|
||||
Reference in New Issue
Block a user