Skip to content

Commit

Permalink
Merge pull request #59 from thomaseleff/v0.1.10
Browse files Browse the repository at this point in the history
v0.1.10
  • Loading branch information
thomaseleff authored Aug 15, 2024
2 parents 0fea9c5 + 04fad3d commit 7a0dcf3
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 23 deletions.
21 changes: 1 addition & 20 deletions .github/workflows/publish-gcs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ name: Publish and deploy to Google Cloud Services
on:
release:
types: [published]
workflow_dispatch:

permissions:
contents: read
Expand Down Expand Up @@ -46,6 +45,7 @@ jobs:
deploy:
runs-on: ubuntu-latest

needs: publish

environment:
Expand All @@ -63,25 +63,6 @@ jobs:
with:
project_id: ${{ secrets.PROJECT_ID }}

- name: Wait for the Docker image to be available in the Artifact Registry
run: |
AVAILABLE=false
for i in {1..36}; do
if gcloud artifacts docker images describe ${{ vars.REGION }}-docker.pkg.dev/${{ secrets.PROJECT_ID }}/${{ vars.REPOSITORY }}/${{ vars.IMAGE }}:${{ env.TAG }}; then
echo "The Docker image is available in the Artifact Registry."
AVAILABLE=true
break
else
echo "Waiting for the Docker image to be available..."
sleep 10
fi
done
if [ "$AVAILABLE" = false ]; then
echo "ERROR: Unable to deploy to Cloud Run. The Docker image is not available in the Artifact Registry. Login to the Google Cloud console for more information."
exit 1
fi
- name: Deploy to Cloud Run
run: |
gcloud run deploy ${{ vars.SERVICE }} \
Expand Down
1 change: 0 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ RUN git clone --branch ${ASSEMBLIT_GITHUB_BRANCH_NAME} "${ASSEMBLIT_GITHUB_REPOS

# Install Python requirements
RUN pip3 install -r requirements.txt --no-cache-dir
RUN pip3 install assemblit

# Expose the network port(s)
EXPOSE ${ASSEMBLIT_CLIENT_PORT}
Expand Down
3 changes: 1 addition & 2 deletions examples/linny/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
pytensils==1.2.0
prefect==2.16.6
assemblit
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
streamlit==1.37.0
prefect==2.16.6
regex==2023.10.3
argon2-cffi==23.1.0
email-validator==2.1.0.post1
Expand Down
1 change: 1 addition & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ include_package_data = True
python_requires = >=3.10.0
install_requires =
streamlit==1.37.0
prefect==2.16.6
regex==2023.10.3
argon2-cffi==23.1.0
email-validator==2.1.0.post1
Expand Down

0 comments on commit 7a0dcf3

Please sign in to comment.