ci: add canary + prod workflows

This commit is contained in:
moham committed 2025-09-18 00:09:15 +02:00
1 parent be50457e80
commit 97c71f365f
3 files changed
+52 -6

No files matched your search

+26
View File
@@ -0,0 +1,26 @@
name: deploy-canary
on:
push:
branches: [ main ]
workflow_dispatch: {}
concurrency:
group: deploy-canary
cancel-in-progress: true
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Deploy to CANARY
uses: appleboy/ssh-action@v1.0.3
with:
host: ${{ secrets.SSH_HOST }}
port: ${{ secrets.SSH_PORT }}
username: ${{ secrets.SSH_USER }}
key: ${{ secrets.SSH_KEY }}
script: |
set -euo pipefail
cd /srv/ihm/app/IHMKOS
git fetch --all
git reset --hard origin/main
/srv/ihm/scripts/docker-run-canary.sh