Skip to content

Commit

Permalink
Update GitHub Actions workflow to use Docker Build-Push Action v5
Browse files Browse the repository at this point in the history
- Upgraded the Docker Build-Push Action from v4 to v5 for both API and Streamlit image builds.
- Adjusted file paths in the workflow to ensure correct Dockerfile references for building images.
- This change enhances the workflow's efficiency and aligns with the latest Docker action updates.
  • Loading branch information
mikhaelbenilouz committed Dec 1, 2024
1 parent a5d48cb commit 44673ef
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build-and-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
uses: docker/setup-buildx-action@v2

- name: Build and push API image
uses: docker/build-push-action@v4
uses: docker/build-push-action@v5
with:
context: .
file: ./app/Dockerfile.apipredict
Expand All @@ -38,10 +38,10 @@ jobs:
${{ secrets.DOCKERHUB_USERNAME }}/api-predict:${{ github.ref_name }}
- name: Build and push Streamlit image
uses: docker/build-push-action@v4
uses: docker/build-push-action@v5
with:
context: ./app
file: Dockerfile.streamlit
file: ./app/Dockerfile.streamlit
push: true
tags: |
${{ secrets.DOCKERHUB_USERNAME }}/streamlit:latest
Expand Down

0 comments on commit 44673ef

Please sign in to comment.