Skip to content

Commit

Permalink
Really add deploy this time, loosen .gitignore
Browse files Browse the repository at this point in the history
  • Loading branch information
obscurerichard committed Jan 1, 2025
1 parent 287f9e4 commit ff44516
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 1 deletion.
30 changes: 30 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
---
name: Deploy Latest

on:
push:
branches:
- 'master'

jobs:

deploy:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:

- name: install
uses: appleboy/[email protected]
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
key: ${{ secrets.KEY }}
port: ${{ secrets.PORT }}
passphrase: ${{ secrets.PASSPHRASE }}
script: |
set -euo pipefail
cd /opt/compose
git checkout master
git pull
docker compose pull
docker compose up -d
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
.*
.env*
/sync-data
/wordpress

0 comments on commit ff44516

Please sign in to comment.