finalize deployment automation #35

Merged
paradizelost merged 1 commits from work into main 2024-11-26 01:49:38 -06:00

View File

@ -22,3 +22,20 @@ jobs:
echo "${{ secrets.GITEASECRET_TOKEN }}" | docker login git.hamik.net -u paradizelost --password-stdin echo "${{ secrets.GITEASECRET_TOKEN }}" | docker login git.hamik.net -u paradizelost --password-stdin
docker build -t git.hamik.net/paradizelost/librarynotices:latest . 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