nodbot/.github/workflows/docker-image.yml
Workflow config file is invalid. Please check your config file: yaml: unmarshal errors: line 10: cannot unmarshal !!map into string line 11: cannot unmarshal !!map into string
Skylar Grant f6edfcd36d Revert "Fixed variable format"
This reverts commit 59f5df4b8e.
2022-12-02 13:00:33 -05:00

27 lines
560 B
YAML

name: Docker Image CI
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
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:$(date +%s)
- 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:latest