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 72bdd0a
Show file tree
Hide file tree
Showing 2 changed files with 21 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 to Production

on: workflow_dispatch

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
7 changes: 5 additions & 2 deletions compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,11 @@ services:
volumes:
- "staticfiles:/app/static"
- type: "bind"
source: "./db.sqlite3"
source: "/data/www/sutazeStrom/db.sqlite3"
target: "/app/db.sqlite3"
- type: "bind"
source: "/data/www/sutazeStrom/.secrets"
target: "/app/.secrets"
restart: always

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

volumes:
staticfiles:
staticfiles:

0 comments on commit 72bdd0a

Please sign in to comment.