Skip to content

Commit

Permalink
add production deploy workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
SyniRon committed Nov 28, 2024
1 parent 7c67cfb commit e2e7ab5
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/prod_deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Development Deploy

on:
push:
branches:
- main

jobs:
deploy:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Setup SSH
uses: webfactory/[email protected]
with:
ssh-private-key: ${{ secrets.THE_KEY }}

- name: Deploy to Server
run: |
ssh -o StrictHostKeyChecking=no [email protected] << 'EOF'
cd /etc/compose/apps/adr
git pull origin main
cd /etc/compose/apps/
docker compose down
docker compose up -d
EOF

0 comments on commit e2e7ab5

Please sign in to comment.