Skip to content

Commit

Permalink
separate out deploy workflow for manual dispatching
Browse files Browse the repository at this point in the history
  • Loading branch information
dbadrian committed Dec 28, 2024
1 parent a3e13bb commit 4336c46
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/deploy-backend.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Deploy Backend

on:
workflow_call:
workflow_dispatch: # manual

jobs:
deploy-backend:
name: Deploy to Server
runs-on: ubuntu-latest
steps:
- name: Build & Deploy
env:
PRIVATE_KEY: ${{ secrets.DEPLOY_SERVER_PRIVATE_KEY }}
SERVER: ${{secrets.DEPLOY_SERVER}}
run: |
echo "$PRIVATE_KEY" > private_key && chmod 600 private_key
ssh -o StrictHostKeyChecking=no -i private_key ${SERVER} '/home/zest/bin/deploy_zest'

0 comments on commit 4336c46

Please sign in to comment.