From 1339d1e1d36e629367bf64f0e9fb85dc6a551820 Mon Sep 17 00:00:00 2001 From: Dave Dietrick Date: Mon, 5 Sep 2022 20:53:48 -0400 Subject: [PATCH] Turn on build --- .gitlab-ci.yml | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index bfffb20..60e3ae4 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -6,8 +6,8 @@ stages: deploy: stage: deploy - #only: - # - main # This pipeline stage will run on this branch alone + only: + - main # This pipeline stage will run on this branch alone image: google/cloud-sdk:latest # We'll use Google Cloud SDK for Cloud Run related commands script: @@ -16,7 +16,4 @@ deploy: - gcloud auth configure-docker # Configure docker environment - gcloud config set project $GCP_PROJECT_ID #Set the GCP Project ID to the variable name - gcloud builds submit --tag gcr.io/$GCP_PROJECT_ID/$SERVICE_NAME #Run the gcloud build command to build our image - - gcloud run deploy $SERVICE_NAME --image gcr.io/$GCP_PROJECT_ID/$SERVICE_NAME --region=us-east4 --platform managed --allow-unauthenticated # Run the gcloud run deploy command to deploy our new service - - rules: - - when: never \ No newline at end of file + - gcloud run deploy $SERVICE_NAME --image gcr.io/$GCP_PROJECT_ID/$SERVICE_NAME --region=us-east4 --platform managed --allow-unauthenticated # Run the gcloud run deploy command to deploy our new service \ No newline at end of file