Skip to content

Commit

Permalink
Merge pull request #49 from MoigeMatino/fix-image-tagging-ci
Browse files Browse the repository at this point in the history
fix: fix building and tagging image on ci
  • Loading branch information
MoigeMatino authored Nov 18, 2024
2 parents 1ed618f + c7084a8 commit 9dd24e4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,11 @@ jobs:

- name: Log in to Docker Hub
run: echo "${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}" | docker login -u ${{ secrets.DOCKER_HUB_USERNAME }} --password-stdin


- name: Build Docker image
run: |
docker build -t my-fastapi-app .
- name: Tag and push Docker image
run: |
docker tag my-fastapi-app ${{ secrets.DOCKER_HUB_USERNAME }}/my-fastapi-app:latest
Expand Down

0 comments on commit 9dd24e4

Please sign in to comment.