finalize deployment automation
All checks were successful
/ Plan (push) Successful in 12s
/ Plan (pull_request) Successful in 14s
/ Deploy (pull_request) Successful in 4s

This commit is contained in:
Dan Hamik 2024-11-26 01:48:27 -06:00
parent 4cc6c8daed
commit 3dc9042a36

View File

@ -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
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