Skip to content

Commit

Permalink
Put allow-unauthenticated flag at the end
Browse files Browse the repository at this point in the history
  • Loading branch information
aguscas committed Jun 27, 2024
1 parent 96e7633 commit 8c474d7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:
if: github.ref == 'refs/heads/main'
run: |
echo "Deploying Main API to Google Cloud Run..."
URL=$(gcloud run deploy main-api --image gcr.io/${{ secrets.GCP_PROJECT_ID }}/flight-predictor --platform managed --region us-central1 --allow-unauthenticated --format="value(status.url)")
URL=$(gcloud run deploy main-api --image gcr.io/${{ secrets.GCP_PROJECT_ID }}/flight-predictor --platform managed --region us-central1 --format="value(status.url) --allow-unauthenticated")
echo "::set-output name=url::$URL"
echo "Deployment completed at $URL"
Expand All @@ -56,7 +56,7 @@ jobs:
if: github.ref == 'refs/heads/develop'
run: |
echo "Deploying Develop API to Google Cloud Run..."
URL=$(gcloud run deploy develop-api --image gcr.io/${{ secrets.GCP_PROJECT_ID }}/flight-predictor --platform managed --region us-central1 --allow-unauthenticated --format="value(status.url)")
URL=$(gcloud run deploy develop-api --image gcr.io/${{ secrets.GCP_PROJECT_ID }}/flight-predictor --platform managed --region us-central1 --format="value(status.url) --allow-unauthenticated")
echo "::set-output name=url::$URL"
echo "Deployment completed at $URL"
Expand All @@ -65,7 +65,7 @@ jobs:
if: contains(github.ref, 'refs/heads/release/')
run: |
echo "Deploying Release API to Google Cloud Run..."
URL=$(gcloud run deploy release-api --image gcr.io/${{ secrets.GCP_PROJECT_ID }}/flight-predictor --platform managed --region us-central1 --allow-unauthenticated --format="value(status.url)")
URL=$(gcloud run deploy release-api --image gcr.io/${{ secrets.GCP_PROJECT_ID }}/flight-predictor --platform managed --region us-central1 --format="value(status.url) --allow-unauthenticated")
echo "::set-output name=url::$URL"
echo "Deployment completed at $URL"
Expand Down

0 comments on commit 8c474d7

Please sign in to comment.