Update docker-image.yml

This commit is contained in:
Skylar Grant 2022-12-11 13:57:55 -05:00 committed by GitHub
parent 27af811aa7
commit 46865a5406
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -2,9 +2,9 @@ name: Docker Image CI
on:
push:
branches: [ "dev" ]
branches: [ "main" ]
pull_request:
branches: [ "dev" ]
branches: [ "main" ]
env:
DHUB_UNAME: ${{ secrets.DHUB_UNAME }}
@ -19,8 +19,8 @@ jobs:
steps:
- uses: actions/checkout@v3
- name: Build the Docker image
run: docker build . --file Dockerfile --tag v0idf1sh/nodbot-dev
run: docker build . --file Dockerfile --tag v0idf1sh/nodbot
- 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
run: docker push v0idf1sh/nodbot