We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 946843c commit 1cd8864Copy full SHA for 1cd8864
.github/workflows/push-image.yaml
@@ -59,15 +59,21 @@ jobs:
59
labels: ${{ steps.meta.outputs.labels }}
60
61
deploy-to-dev:
62
- name: Deploy to dev server
+ name: Deploy to dev
63
runs-on: ubuntu-latest
64
needs: push-image
65
+ if: github.ref == 'refs/heads/main'
66
+ environment:
67
+ name: dev
68
+ url: ${{ vars.APP_URL }}
69
+
70
steps:
71
- name: Deploy via SSH
72
uses: appleboy/[email protected]
73
with:
74
host: ${{ secrets.SSH_HOST }}
75
username: ${{ secrets.SSH_USER }}
76
key: ${{ secrets.SSH_PRIVATE_KEY }}
- # Dummy command
- script: whoami
77
+ port: ${{ secrets.SSH_PORT || 22 }}
78
+ fingerprint: ${{ secrets.SSH_HOST_FINGERPRINT }}
79
+ script: deploy dev
0 commit comments