Maybe working

This commit is contained in:
Skylar Grant 2024-09-22 18:13:15 -04:00
parent 1575d0047c
commit f9bb94a4a1

View File

@ -1,7 +1,9 @@
name: Silvanus Production Dockerization
on:
workflow_dispatch:
pull_request:
branches:
- main
env:
DHUB_UNAME: ${{ secrets.DHUB_UNAME }}
@ -31,10 +33,15 @@ jobs:
- name: Build the Docker image
run: |
cd /var/lib/act_runner/silvanus
docker build . --file Dockerfile --tag v0idf1sh/silvanus-exp
docker build . --file Dockerfile --tag v0idf1sh/silvanus
- name: Log into Docker Hub
run: docker login -u $DHUB_UNAME -p $DHUB_PWORD
- name: Push image to Docker Hub
run: |
cd /var/lib/act_runner/silvanus
docker push v0idf1sh/silvanus-exp
docker push v0idf1sh/silvanus
- name: Restart the container
run: |
cd /srv/docker/silvanus
docker-compose down
docker-compose up -d