Skip to content

Commit

Permalink
Add workflow to update fastapi image
Browse files Browse the repository at this point in the history
  • Loading branch information
castolpe committed Nov 7, 2024
1 parent 961c17f commit 06ffa6d
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/rebuild_docker_image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Rebuild Dockerimage
on:
workflow_run:
workflows: ["Run data pipeline"]
types:
- completed
workflow_dispatch:

jobs:
run-dvc-pipeline:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v3

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

- name: Build Docker Image
run: docker build -t ${{ secrets.DOCKER_USERNAME }}/fastapi:latest .

- name: Push Docker Image to Docker Hub
run: docker push ${{ secrets.DOCKER_USERNAME }}/fastapi:latest

- name: Log out of Docker Hub
run: docker logout

0 comments on commit 06ffa6d

Please sign in to comment.