diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml new file mode 100644 index 0000000..224c673 --- /dev/null +++ b/.github/workflows/deploy.yaml @@ -0,0 +1,16 @@ +name: Deploy to Production + +on: push + +jobs: + deploy: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: wshihadeh/docker-deployment-action@v2 + with: + remote_docker_host: webstrom@server.strom.sk + 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 diff --git a/compose.yaml b/compose.yaml index a2d0276..f5dcd0b 100644 --- a/compose.yaml +++ b/compose.yaml @@ -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 @@ -23,4 +23,4 @@ services: restart: always volumes: - staticfiles: \ No newline at end of file + staticfiles: