Compare commits

..

No commits in common. "dd313faa60228a85050a982401cef9af90cd8fb9" and "4dda58f48e6454300b3960b01b14990828763842" have entirely different histories.

1 changed files with 7 additions and 17 deletions

View File

@ -1,7 +1,7 @@
name: Silvanus Production Dockerization name: Silvanus Production Dockerization
on: on:
pull_request: merge:
branches: branches:
- main - main
@ -13,23 +13,13 @@ jobs:
build: build:
runs-on: self-hosted runs-on: ubuntu-latest
steps: steps:
- name: Pull latest from Git - uses: actions/checkout@v3
run: | - name: Build the Docker image v0idf1sh/silvanus
pwd run: docker build . --file Dockerfile --tag v0idf1sh/silvanus
whoami
cd /root/silvanus
git pull
git checkout $GITHUB_HEAD_REF
- name: Build the Docker image
run: |
cd /root/silvanus
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 v0idf1sh/silvanus
run: | run: docker push v0idf1sh/silvanus
cd /root/silvanus
docker push v0idf1sh/silvanus