Skip to content

Commit

Permalink
Added Docker Setup
Browse files Browse the repository at this point in the history
  • Loading branch information
GetRohitansh committed Sep 9, 2023
1 parent 46c76e3 commit aa7ab8c
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/build-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,3 +65,23 @@ jobs:
run: |
pip install pytest
pytest
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{secrets.DOCKERHUB_USERNAME}}
password: ${{secrets.DOCKERHUB_ACCESS_TOKEN}}

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

- name: Build and push
uses: docker/build-push-action@v4
with:
context: .
file: ./Dockerfile
push: true
tags: ${{secrets.DOCKERHUB_USERNAME}}/fastapi:latest

- name: Image Digest
run: echo ${{steps.docker_build.outputs.digest}}

0 comments on commit aa7ab8c

Please sign in to comment.