28 lines
747 B
YAML
28 lines
747 B
YAML
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 }}
|
|
token: ${{ secrets.ACTIONS_PAT }}
|
|
script: |
|
|
set -euo pipefail
|
|
cd /srv/ihm/app/IHMKOS
|
|
git fetch --all
|
|
git reset --hard origin/main
|
|
/srv/ihm/scripts/docker-run-canary.sh
|