ci: upgrade job verifies worker version
@@ -10,10 +10,12 @@ test -n "$PIPELINE_NAME"
until curl --fail "http://$WEB_IP:8080/api/v1/info"; do sleep 2; done
+WORKER_VERSION=$(curl -s "http://$WEB_IP:8080/api/v1/info" | jq -r .worker_version)
+
fly -t local login -c "http://$WEB_IP:8080" -u $WEB_USERNAME -p $WEB_PASSWORD
# wait for worker to be available
-until fly -t local workers | grep running; do
+until fly -t local workers | grep running | grep -F $WORKER_VERSION; do
echo "waiting for running worker..."
sleep 2
done
