Skip to content

Commit

Permalink
Add debug info to deploy workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Mtze committed Jul 30, 2024
1 parent 3f1ee02 commit 69a143d
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/deploy-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 69a143d

Please sign in to comment.