From 3dc9042a36c9c1f86e5aac897beecac57ff8f1c7 Mon Sep 17 00:00:00 2001 From: Dan Hamik Date: Tue, 26 Nov 2024 01:48:27 -0600 Subject: [PATCH] finalize deployment automation --- .gitea/workflows/push-build.yml | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/push-build.yml b/.gitea/workflows/push-build.yml index 9605f3d..1186374 100644 --- a/.gitea/workflows/push-build.yml +++ b/.gitea/workflows/push-build.yml @@ -21,4 +21,21 @@ jobs: run: | echo "${{ secrets.GITEASECRET_TOKEN }}" | docker login git.hamik.net -u paradizelost --password-stdin docker build -t git.hamik.net/paradizelost/librarynotices:latest . - docker push git.hamik.net/paradizelost/librarynotices \ No newline at end of file + docker push git.hamik.net/paradizelost/librarynotices + Deploy: + runs-on: librarynoticehost + defaults: + run: + working-directory: /docker/librarynotices + steps: + - name: Destroy Container + id: down + run: docker compose down + + - name: Pull Updates + id: pull + run: docker compose pull + + - name: Start Containers + id: start + run: docker compose up -d \ No newline at end of file -- 2.47.1