diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000..b5e6e2f --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,19 @@ +name: Deploy Docker + +on: + push: + branches: ["main"] + +jobs: + deploy: + runs-on: self-hosted + + steps: + - name: Checkout repo + uses: actions/checkout@v4 + + - name: Build & restart containers + run: | + docker compose down || true + docker compose build + docker compose up -d \ No newline at end of file