From 2cd5ebbb40c3c08c6034db5f9068e61cb7afd5d5 Mon Sep 17 00:00:00 2001 From: InAnYan Date: Wed, 5 Aug 2026 18:25:32 +0200 Subject: [PATCH] add verification --- .gitea/workflows/deploy-infrastructure.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.gitea/workflows/deploy-infrastructure.yml b/.gitea/workflows/deploy-infrastructure.yml index 5916d24..d414404 100644 --- a/.gitea/workflows/deploy-infrastructure.yml +++ b/.gitea/workflows/deploy-infrastructure.yml @@ -63,6 +63,18 @@ jobs: echo "INFRASTRUCTURE_TOKEN=$INFRASTRUCTURE_TOKEN" >> $GITHUB_ENV echo "TF_HTTP_PASSWORD=$INFRASTRUCTURE_TOKEN" >> $GITHUB_ENV + - name: Verify Secrets + run: | + if [ -z "$PROXMOX_VE_API_TOKEN" ]; then + echo "Error: PROXMOX_VE_API_TOKEN is not set or is empty." >&2 + exit 1 + fi + if [ -z "$INFRASTRUCTURE_TOKEN" ]; then + echo "Error: INFRASTRUCTURE_TOKEN is not set or is empty." >&2 + exit 1 + fi + echo "Verification successful: both tokens are present." + - name: Configure Git for private modules run: git config --global url."https://oauth2:$INFRASTRUCTURE_TOKEN@git.itlab-ffeks.dnu.edu.ua".insteadOf "https://git.itlab-ffeks.dnu.edu.ua"