From c54fdef0cf16b2ba866ad1ef78e07b3ef86c7a44 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?An=C4=91elo=20Kandi=C4=87?= Date: Mon, 31 Aug 2026 10:25:46 +0200 Subject: [PATCH] chore: validate rendered compose YAML in staging deploy The staging deploy runner is a container without docker, so the docker compose config check always failed and reported the rendered compose as invalid. Validate with a yq parse instead, which catches envsubst producing broken YAML and prints the parse error without echoing the rendered file. Requires yq in the actions-runner image. --- .github/workflows/deploy-portainer-staging.yml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/deploy-portainer-staging.yml b/.github/workflows/deploy-portainer-staging.yml index 3f518cec..f8f15182 100644 --- a/.github/workflows/deploy-portainer-staging.yml +++ b/.github/workflows/deploy-portainer-staging.yml @@ -70,12 +70,10 @@ jobs: KEYSHARE_3: ${{ secrets.KEYSHARE_3 }} run: | envsubst '$SIGNING_IMAGE_VERSION $SPRINTER_SIGNING_DOMAIN $SYG_CHAINS $SYG_RELAYER_SOLVERCONFIG_ACCESSKEY $SYG_RELAYER_SOLVERCONFIG_SECRETKEY $SYG_RELAYER_MPCCONFIG_TOPOLOGYCONFIGURATION_ENCRYPTIONKEY $SYG_RELAYER_MPCCONFIG_TOPOLOGYCONFIGURATION_URL $SYG_RELAYER_OPENTELEMETRYCOLLECTORURL $SYG_RELAYER_MPCCONFIG_KEY_1 $KEYSHARE_1 $SYG_RELAYER_MPCCONFIG_KEY_2 $KEYSHARE_2 $SYG_RELAYER_MPCCONFIG_KEY_3 $KEYSHARE_3' < ${DOCKER_COMPOSE_PATH} > docker-compose.rendered.yml + echo "Rendered docker-compose" - if ! docker compose -f docker-compose.rendered.yml config -q > /dev/null 2>&1; then - echo "::error::Rendered docker-compose is invalid" - exit 1 - fi - echo "Rendered docker-compose is valid" + - name: Validate rendered docker-compose + run: yq . docker-compose.rendered.yml > /dev/null - name: Deploy stack (create or update) env: