Skip to content

Merge pull request #8 from sdip15fa/dependabot/npm_and_yarn/cf-worker… #60

Merge pull request #8 from sdip15fa/dependabot/npm_and_yarn/cf-worker…

Merge pull request #8 from sdip15fa/dependabot/npm_and_yarn/cf-worker… #60

name: Publish Docker Image 'wcyat/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: wcyat/whatsbot
tag_with_ref: true