From 4d7c38be0783a275461b1c190b44b6ef68fb1ea4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petar=20Cvetko=20Vo=C4=87anec?= Date: Wed, 20 Nov 2024 19:59:32 +0100 Subject: [PATCH] Added initial deploy workflow for private GitHub runner --- .github/workflows/deploy.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/deploy.yml diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000..0a36e4e --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,19 @@ +name: Deploy to Personal VPS + +on: + push: + branches: + - production + +jobs: + deploy: + runs-on: self-hosted + + steps: + - name: Checkout code + uses: actions/checkout@v4.2.2 + + - name: Build and deploy compose file + run: | + docker compose down + docker compose up -d --build