ci: add DEPLOY_PASSPHRASE secret for SSH key passphrase
This commit is contained in:
@@ -55,11 +55,12 @@ jobs:
|
||||
needs: build-and-push
|
||||
steps:
|
||||
- name: Deploy via SSH
|
||||
uses: appleboy/ssh-action@v1.0.3
|
||||
uses: appleboy/ssh-action@v1.2.5
|
||||
with:
|
||||
host: ${{ secrets.DEPLOY_HOST }}
|
||||
username: ${{ secrets.DEPLOY_USERNAME }}
|
||||
key: ${{ secrets.DEPLOY_SSH_KEY }}
|
||||
passphrase: ${{ secrets.DEPLOY_PASSPHRASE }}
|
||||
script: |
|
||||
set -euo pipefail
|
||||
|
||||
@@ -97,19 +98,4 @@ jobs:
|
||||
echo "::error::QA health check failed"
|
||||
exit 1
|
||||
|
||||
notify:
|
||||
name: Notification
|
||||
runs-on: ubuntu-latest
|
||||
needs: [build-and-push, deploy]
|
||||
if: always()
|
||||
steps:
|
||||
- name: Write summary
|
||||
run: |
|
||||
cat << 'SUMMARY' >> $GITEA_HOME/workflow/summary
|
||||
## QA Deployment ${{ needs.deploy.result }}
|
||||
|
||||
**Branch:** dev
|
||||
**Commit:** ${{ gitea.sha }}
|
||||
**Image:** ${{ vars.REGISTRY_URL }}/${{ vars.IMAGE_NAME }}:qa-latest
|
||||
**URL:** https://practicas.qa.kubistudio.cloud
|
||||
SUMMARY
|
||||
|
||||
Reference in New Issue
Block a user