Skip to content

Commit

Permalink
Only run docker image build after pypi upload is done
Browse files Browse the repository at this point in the history
  • Loading branch information
kshitijrajsharma committed Mar 25, 2024
1 parent e779d52 commit b12cd94
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/docker-image-build-publish.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
#
name: Create and publish a Docker image

# Configures this workflow to run every time a change is pushed to the branch called `release`.
on:
release:
types: [published]
# Defines two custom environment variables for the workflow. These are used for the Container registry domain, and a name for the Docker image that this workflow builds.
workflow_run:
workflows: ["Upload to PyPI"]
types:
- completed
# release:
# types: [published]

env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}

# There is a single job in this workflow. It's configured to run on the latest available version of Ubuntu.
jobs:
build-and-push-image:
runs-on: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pypi-upload.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build and Publish
name: Upload to PyPI

on:
release:
Expand Down
2 changes: 1 addition & 1 deletion API/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
fastapi==0.103.2
uvicorn==0.22.0
fairpredictor # always install latest
fairpredictor==0.0.31
tflite-runtime==2.14.0

0 comments on commit b12cd94

Please sign in to comment.