forked from BLC/sgeUpdated
update to sgeupdated pipeline v17
Some checks failed
sgeUpdated CI/CD / deploy (push) Failing after 22s
Some checks failed
sgeUpdated CI/CD / deploy (push) Failing after 22s
This commit is contained in:
@@ -5,6 +5,11 @@ on:
|
|||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- main # trigger only when code is merged into main
|
- main # trigger only when code is merged into main
|
||||||
|
workflow_dispatch: # ✅ allow manual trigger
|
||||||
|
|
||||||
|
concurrency:
|
||||||
|
group: sgeupdated-deploy-${{ github.ref }} # ✅ prevent overlapping deploys for same branch
|
||||||
|
cancel-in-progress: true
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
deploy:
|
deploy:
|
||||||
@@ -20,7 +25,6 @@ jobs:
|
|||||||
username: ${{ secrets.SERVER_USER }}
|
username: ${{ secrets.SERVER_USER }}
|
||||||
key: ${{ secrets.SSH_PRIVATE_KEY }}
|
key: ${{ secrets.SSH_PRIVATE_KEY }}
|
||||||
script_stop: true
|
script_stop: true
|
||||||
|
|
||||||
script: |
|
script: |
|
||||||
cd /home/ubuntu/sgeUpdated
|
cd /home/ubuntu/sgeUpdated
|
||||||
git fetch origin main
|
git fetch origin main
|
||||||
|
|||||||
Reference in New Issue
Block a user