Renommer le workflow de déploiement SSH et mettre à jour le script de déploiement
All checks were successful
SSH Frontend Deploy / ssh-deploy (push) Successful in 2s
All checks were successful
SSH Frontend Deploy / ssh-deploy (push) Successful in 2s
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
name: SSH Hello
|
name: SSH Frontend Deploy
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
@@ -6,7 +6,7 @@ on:
|
|||||||
- main
|
- main
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
ssh-hello:
|
ssh-deploy:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
@@ -17,6 +17,6 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
SSH_PRIVATE_KEY: ${{ vars.SSH_PRIVATE_KEY }}
|
SSH_PRIVATE_KEY: ${{ vars.SSH_PRIVATE_KEY }}
|
||||||
|
|
||||||
- name: Run SSH Hello
|
- name: Run SSH Deploy Script
|
||||||
run: |
|
run: |
|
||||||
ssh -i id_rsa -o StrictHostKeyChecking=no ${{ vars.SSH_USER }}@${{ vars.SSH_HOST }} "echo 'Hello from Gitea Action!'"
|
ssh -i id_rsa -o StrictHostKeyChecking=no ${{ vars.SSH_USER }}@${{ vars.SSH_HOST }} "cd /root/timelapse-frontend && ./deploy.sh"
|
||||||
|
|||||||
Reference in New Issue
Block a user