Skip to content

Commit

Permalink
Github actions: initial cleanup after fixing artifact upload
Browse files Browse the repository at this point in the history
  • Loading branch information
fdabrandao authored Sep 14, 2024
1 parent da7b51e commit 34f1769
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/deploy-streamlit-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,20 +47,18 @@ jobs:
# Step 5: Build Docker Image for Streamlit app
- name: Build Docker image
run: |
docker build -t ${{ secrets.GCP_REGION }}-docker.pkg.dev/${{ secrets.GCP_PROJECT_ID }}/streamlit-app/streamlit-app:$GITHUB_SHA .
docker build -t ${{ secrets.GCP_REGION }}-docker.pkg.dev/${{ secrets.GCP_PROJECT_ID }}/streamlit-app-repo/streamlit-app:$GITHUB_SHA .
# Step 6: Push Docker image to Google Artifact Registry
- name: Push Docker image to Artifact Registry
run: |
# gcloud auth print-access-token | docker login -u oauth2accesstoken --password-stdin https://${{ secrets.GCP_REGION }}-docker.pkg.dev
#docker push us-central1-docker.pkg.dev/streamlit-app-434012/streamlit-app/streamlit-app:$GITHUB_SHA
docker push ${{ secrets.GCP_REGION }}-docker.pkg.dev/${{ secrets.GCP_PROJECT_ID }}/streamlit-app/streamlit-app:$GITHUB_SHA
docker push ${{ secrets.GCP_REGION }}-docker.pkg.dev/${{ secrets.GCP_PROJECT_ID }}/streamlit-app-repo/streamlit-app:$GITHUB_SHA
# Step 7: Deploy to Cloud Run using the Artifact Registry image
#- name: Deploy to Cloud Run
# run: |
# gcloud run deploy streamlit-app \
# --image ${{ secrets.GCP_REGION }}-docker.pkg.dev/${{ secrets.GCP_PROJECT_ID }}/${{ secrets.GCP_PROJECT_REPO }}/streamlit-app:$GITHUB_SHA \
# --image ${{ secrets.GCP_REGION }}-docker.pkg.dev/${{ secrets.GCP_PROJECT_ID }}/streamlit-app-repo/streamlit-app:$GITHUB_SHA \
# --platform managed \
# --region ${{ secrets.GCP_REGION }} \
# --allow-unauthenticated

0 comments on commit 34f1769

Please sign in to comment.