Skip to content

Commit

Permalink
Update docker-image.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
hrittikhere committed Jun 26, 2023
1 parent 133a8bf commit 992b926
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,25 @@ on:
branches: [ "master" ]

jobs:

build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Build Application Image
run: docker build . --file Dockerfile --tag hrittik/sample-flask

- name: Login to DockerHub
run: docker login --username ${{ secrets.DOCKERHUB_USERNAME }} --password ${{ secrets.DOCKERHUB_PASSWORD }}

- name: Push Application Image to DockerHub
run: docker push hrittik/sample-flask

- uses: actions/checkout@v3

- name: Build Mock Date Image
run: docker build mock-data/ --file mock-data/Dockerfile --tag hrittik/mock-date

- name: Push Mock Date Image to DockerHub
run: docker push hrittik/mock-date

0 comments on commit 992b926

Please sign in to comment.