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"