Skip to content

Commit

Permalink
Merge pull request usha-mandya#2 from usha-mandya/usha-mandya-patch-1
Browse files Browse the repository at this point in the history
Update main.yml
  • Loading branch information
usha-mandya authored Oct 12, 2020
2 parents 90d6aa5 + bb72f36 commit 772e9d5
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: CI to Docker hub

on:

push:

branches: [ master ]

steps:

-

name: Login to DockerHub

uses: docker/login-action@v1

with:

username: ${{ secrets.DOCKER_HUB_USERNAME }}

password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}

-

name: Build and push

id: docker_build

uses: docker/build-push-action@v2

with:

context: ./

file: ./Dockerfile

push: true

tags: bengotch/simplewhale:latest

-

name: Image digest

run: echo ${{ steps.docker_build.outputs.digest }}

0 comments on commit 772e9d5

Please sign in to comment.