Improved CI

This commit is contained in:
Skylar Grant 2023-02-12 21:33:28 -05:00
parent c35cfbf962
commit 4eb793fadd
2 changed files with 23 additions and 2 deletions

23
.github/workflows/dev-deploy.yml vendored Normal file
View File

@ -0,0 +1,23 @@
name: Nodbot-dev Dockerization
on:
workflow_dispatch:
env:
DHUB_UNAME: ${{ secrets.DHUB_UNAME }}
DHUB_PWORD: ${{ secrets.DHUB_PWORD }}
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Build the Docker image
run: docker build . --file Dockerfile --tag v0idf1sh/nodbot-dev
- name: Log into Docker Hub
run: docker login -u $DHUB_UNAME -p $DHUB_PWORD
- name: Push image to Docker Hub
run: docker push v0idf1sh/nodbot-dev

View File

@ -1,8 +1,6 @@
name: Docker Image CI
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]