mirror of
https://gitlab.com/djdietrick/docs
synced 2026-05-03 02:40:55 -04:00
Turn on build
This commit is contained in:
@@ -6,8 +6,8 @@ stages:
|
|||||||
|
|
||||||
deploy:
|
deploy:
|
||||||
stage: deploy
|
stage: deploy
|
||||||
#only:
|
only:
|
||||||
# - main # This pipeline stage will run on this branch alone
|
- 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
|
image: google/cloud-sdk:latest # We'll use Google Cloud SDK for Cloud Run related commands
|
||||||
script:
|
script:
|
||||||
@@ -17,6 +17,3 @@ deploy:
|
|||||||
- gcloud config set project $GCP_PROJECT_ID #Set the GCP Project ID to the variable name
|
- 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 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
|
- 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
|
|
||||||
Reference in New Issue
Block a user