Created
June 22, 2020 07:01
-
-
Save Timtech4u/e341bee59cdada9de3c219e5acd81198 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# File: .gitlab-ci.yml | |
image: docker:latest | |
stages: | |
- deploy | |
deploy: | |
stage: deploy | |
image: google/cloud-sdk | |
services: | |
- docker:dind | |
script: | |
- echo $GCP_SERVICE_KEY > gcloud-service-key.json # Google Cloud service accounts | |
- gcloud auth activate-service-account --key-file gcloud-service-key.json | |
- gcloud config set project $GCP_PROJECT_ID | |
- gcloud builds submit . --config=cloudbuild.yaml |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment