From 8c474d7a0fcf4387500e08c2ae6288be35442f6b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Agust=C3=ADn=20Castro?= Date: Thu, 27 Jun 2024 17:51:39 -0300 Subject: [PATCH] Put allow-unauthenticated flag at the end --- .github/workflows/cd.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index b20d2ba..eeda7c9 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -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" @@ -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" @@ -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"