Skip to content

Commit

Permalink
Add deployment from pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
mmihalik committed May 21, 2024
1 parent 800c651 commit c50e77c
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Deploy

on: push

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: wshihadeh/docker-deployment-action@v2
with:
remote_docker_host: [email protected]
ssh_private_key: ${{ secrets.WEBSTROM_DEPLOY_SSH_PRIVATE_KEY }}
ssh_public_key: ${{ secrets.WEBSTROM_DEPLOY_SSH_PUBLIC_KEY }}
stack_file_name: compose.yaml
args: up --build --force-recreate --detach
4 changes: 2 additions & 2 deletions compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ services:
volumes:
- "staticfiles:/app/static"
- type: "bind"
source: "./db.sqlite3"
source: "/data/www/sutazeStrom/db.sqlite3"
target: "/app/db.sqlite3"
restart: always

Expand All @@ -23,4 +23,4 @@ services:
restart: always

volumes:
staticfiles:
staticfiles:

0 comments on commit c50e77c

Please sign in to comment.