Change dispatch to pull req #3
19
.github/workflows/docker-image-prod.yml
vendored
19
.github/workflows/docker-image-prod.yml
vendored
@ -16,15 +16,18 @@ jobs:
|
|||||||
runs-on: self-hosted
|
runs-on: self-hosted
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Move into build directory
|
- name: Pull latest from Git
|
||||||
run: cd /home/git/silvanus
|
run: |
|
||||||
- name: Pull latest files
|
cd /home/git/silvanus
|
||||||
run: git pull
|
git pull
|
||||||
- name: Checkout from HEAD
|
git checkout $GITHUB_HEAD_REF
|
||||||
run: git checkout $GITHUB_HEAD_REF
|
|
||||||
- name: Build the Docker image
|
- name: Build the Docker image
|
||||||
run: docker build . --file Dockerfile --tag v0idf1sh/silvanus
|
run: |
|
||||||
|
cd /home/git/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
|
||||||
run: docker push v0idf1sh/silvanus
|
run: |
|
||||||
|
cd /home/git/silvanus
|
||||||
|
docker push v0idf1sh/silvanus
|
Loading…
Reference in New Issue
Block a user