Maybe working
This commit is contained in:
parent
1575d0047c
commit
f9bb94a4a1
@ -1,7 +1,9 @@
|
|||||||
name: Silvanus Production Dockerization
|
name: Silvanus Production Dockerization
|
||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
pull_request:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
|
||||||
env:
|
env:
|
||||||
DHUB_UNAME: ${{ secrets.DHUB_UNAME }}
|
DHUB_UNAME: ${{ secrets.DHUB_UNAME }}
|
||||||
@ -31,10 +33,15 @@ jobs:
|
|||||||
- name: Build the Docker image
|
- name: Build the Docker image
|
||||||
run: |
|
run: |
|
||||||
cd /var/lib/act_runner/silvanus
|
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
|
- name: Log into Docker Hub
|
||||||
run: docker login -u $DHUB_UNAME -p $DHUB_PWORD
|
run: docker login -u $DHUB_UNAME -p $DHUB_PWORD
|
||||||
- name: Push image to Docker Hub
|
- name: Push image to Docker Hub
|
||||||
run: |
|
run: |
|
||||||
cd /var/lib/act_runner/silvanus
|
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
|
Loading…
Reference in New Issue
Block a user