Skip to content

Commit

Permalink
Merge pull request #52 from freezingsaddles/fix-deploy
Browse files Browse the repository at this point in the history
fix deploy
  • Loading branch information
obscurerichard authored Jan 1, 2025
2 parents a2cef4a + 786093c commit bb20d4b
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 1 deletion.
29 changes: 29 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
---
name: Deploy Latest

on: # yamllint disable-line
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 bb20d4b

Please sign in to comment.