voidbot/.github/workflows/docker-image.yml
Skylar Grant 6fb2a3f4e0
All checks were successful
voidbot Production Dockerization / build (push) Successful in 53s
Add status role menu+heartbeat+impr CI+logging
2023-08-12 22:10:05 -04:00

36 lines
738 B
YAML

name: voidbot Production Dockerization
on:
push:
branches:
- main
merge:
branches:
- main
env:
DHUB_UNAME: ${{ secrets.DHUB_UNAME }}
DHUB_PWORD: ${{ secrets.DHUB_PWORD }}
jobs:
build:
runs-on: self-hosted
steps:
- name: Pull latest from Git
run: |
cd /root/voidbot
git pull
git checkout $GITHUB_HEAD_REF
- name: Build the Docker image
run: |
cd /root/voidbot
docker build . --file Dockerfile --tag v0idf1sh/voidbot
- name: Log into Docker Hub
run: docker login -u $DHUB_UNAME -p $DHUB_PWORD
- name: Push image to Docker Hub
run: |
cd /root/voidbot
docker push v0idf1sh/voidbot