Skip to content
Snippets Groups Projects
Commit 15a3972b authored by Lluis Gifre Renom's avatar Lluis Gifre Renom
Browse files

Fixed deploy script

- Corrected error with log file name generated for deploy stages during TFS deployment.
parent 22e4a5fb
No related branches found
No related tags found
1 merge request!54Release 2.0.0
...@@ -115,7 +115,7 @@ for COMPONENT in $TFS_COMPONENTS; do ...@@ -115,7 +115,7 @@ for COMPONENT in $TFS_COMPONENTS; do
fi fi
echo " Deploying '$COMPONENT' component to Kubernetes..." echo " Deploying '$COMPONENT' component to Kubernetes..."
DEPLOY_LOG="$TMP_LOGS_FOLDER/push_${COMPONENT}.log" DEPLOY_LOG="$TMP_LOGS_FOLDER/deploy_${COMPONENT}.log"
kubectl --namespace $TFS_K8S_NAMESPACE apply -f "$MANIFEST" > "$DEPLOY_LOG" kubectl --namespace $TFS_K8S_NAMESPACE apply -f "$MANIFEST" > "$DEPLOY_LOG"
kubectl --namespace $TFS_K8S_NAMESPACE scale deployment --replicas=0 ${COMPONENT}service >> "$DEPLOY_LOG" kubectl --namespace $TFS_K8S_NAMESPACE scale deployment --replicas=0 ${COMPONENT}service >> "$DEPLOY_LOG"
kubectl --namespace $TFS_K8S_NAMESPACE scale deployment --replicas=1 ${COMPONENT}service >> "$DEPLOY_LOG" kubectl --namespace $TFS_K8S_NAMESPACE scale deployment --replicas=1 ${COMPONENT}service >> "$DEPLOY_LOG"
......
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