Skip to content

Commit

Permalink
(Test) Created automated workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Tuhin Kanti Pal authored Feb 24, 2021
1 parent b106731 commit 393abd8
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/publish-docker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
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

0 comments on commit 393abd8

Please sign in to comment.