From 69a143d2eb63d2fe72277ef9e0af976d93d48ae2 Mon Sep 17 00:00:00 2001 From: Matthias Linhuber Date: Tue, 30 Jul 2024 13:43:17 +0200 Subject: [PATCH] Add debug info to deploy workflow --- .github/workflows/deploy-docker.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deploy-docker.yml b/.github/workflows/deploy-docker.yml index e9ed584c..60717d49 100644 --- a/.github/workflows/deploy-docker.yml +++ b/.github/workflows/deploy-docker.yml @@ -15,7 +15,14 @@ jobs: environment: name: ${{ (github.ref == 'refs/heads/main') && 'PROMPT-Prod' || (github.ref == 'refs/heads/develop') && 'PROMPT-Dev' }} url: 'https://${{ vars.VM_HOST }}' - steps: + steps: + - name: Print debug information + run: | + echo "GitHub Ref: ${{ github.ref }}" + echo "Current Environment Selector: ${{ (github.ref == 'refs/heads/main') && 'PROMPT-Prod' || (github.ref == 'refs/heads/develop') && 'PROMPT-Dev' }}" + echo "Simplified Environment Selector: ${{ (github.ref == 'refs/heads/main') && 'PROMPT-Prod' || 'PROMPT-Dev' }}" + echo "Choose Environment: ${{ env.name }}" + echo "VM Host: ${{ vars.VM_HOST }}" - name: SSH to VM and Execute Docker-Compose Down uses: appleboy/ssh-action@v1.0.3 continue-on-error: true