From b3739a62428481ea286ca215ee117851393323d5 Mon Sep 17 00:00:00 2001 From: Phill Pover Date: Thu, 27 Mar 2025 11:59:46 +0000 Subject: [PATCH] Adding continuous deployment --- .gitea/workflows/workflow.yaml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.gitea/workflows/workflow.yaml b/.gitea/workflows/workflow.yaml index d44cd4c..58aa607 100644 --- a/.gitea/workflows/workflow.yaml +++ b/.gitea/workflows/workflow.yaml @@ -33,6 +33,7 @@ jobs: working-directory: ./${{ matrix.workingdir }} build-and-push-images: + needs: test runs-on: ubuntu-latest container: image: catthehacker/ubuntu:act-latest @@ -78,3 +79,12 @@ jobs: push: true tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} + + deploy: + needs: build-and-push-images + runs-on: self-hosted + steps: + - name: Pull docker containers + run: docker compose pull + - name: Start containers + run: docker compose up -d anatid-blog-frontend anatid-blog-backend