Skip to content

Merge pull request #86 from tuhinpal/tuhinpal-patch-1 #56

Merge pull request #86 from tuhinpal/tuhinpal-patch-1

Merge pull request #86 from tuhinpal/tuhinpal-patch-1 #56

name: Publish Docker Image 'jeeetpaul/whatsbot'
on:
push:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Build the Docker image
run: docker build . --file Dockerfile --tag my-image-name:$(date +%s)
- name: Push to Docker Hub
uses: docker/build-push-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
repository: jeeetpaul/whatsbot
tag_with_ref: true