Update docker-image.yml #2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Docker Image CI | |
on: | |
push: | |
branches: [ "master" ] | |
pull_request: | |
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 |