Compare commits
12 Commits
4dda58f48e
...
dd313faa60
Author | SHA1 | Date | |
---|---|---|---|
dd313faa60 | |||
ba81f01fa0 | |||
e303651f53 | |||
40fc6838a0 | |||
67483697f0 | |||
1e1d0cddaa | |||
45418e2bd6 | |||
22005ac68f | |||
805c20953c | |||
ba0e4625c0 | |||
11465287dd | |||
36c59f83f4 |
24
.github/workflows/docker-image-prod.yml
vendored
24
.github/workflows/docker-image-prod.yml
vendored
@ -1,7 +1,7 @@
|
||||
name: Silvanus Production Dockerization
|
||||
|
||||
on:
|
||||
merge:
|
||||
pull_request:
|
||||
branches:
|
||||
- main
|
||||
|
||||
@ -13,13 +13,23 @@ jobs:
|
||||
|
||||
build:
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: self-hosted
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Build the Docker image v0idf1sh/silvanus
|
||||
run: docker build . --file Dockerfile --tag v0idf1sh/silvanus
|
||||
- name: Pull latest from Git
|
||||
run: |
|
||||
pwd
|
||||
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
|
||||
run: docker login -u $DHUB_UNAME -p $DHUB_PWORD
|
||||
- name: Push image to Docker Hub v0idf1sh/silvanus
|
||||
run: docker push v0idf1sh/silvanus
|
||||
- name: Push image to Docker Hub
|
||||
run: |
|
||||
cd /root/silvanus
|
||||
docker push v0idf1sh/silvanus
|
Loading…
Reference in New Issue
Block a user