-
Notifications
You must be signed in to change notification settings - Fork 0
/
usgin-gcloud-cli
32 lines (9 loc) · 1.59 KB
/
usgin-gcloud-cli
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
IN JENKINS
docker run -it -e CLOUDSDK_CONFIG=/home/centos/tmp/gcloud/gcloud -v /home/centos/tmp/gcloud/gcloud:/home/centos/tmp/gcloud/gcloud -v /home/centos/tmp/gcloud/gcp-key.json:/home/centos/tmp/gcloud/gcp-key.json google/cloud-sdk:latest gcloud auth activate-service-account [email protected] --key-file=/home/centos/tmp/gcloud/gcp-key.json
docker run -it -e CLOUDSDK_CONFIG=/home/centos/tmp/gcloud/gcloud -v /home/centos/tmp/gcloud/gcloud:/home/centos/tmp/gcloud/gcloud -v /home/centos/tmp/gcloud/gcp-key.json:/home/centos/tmp/gcloud/gcp-key.json google/cloud-sdk:latest gcloud config set project dev-test-29-uat
gcloud config set project dev-test-29-uat
gcloud secrets versions access 1 --secret=dev-juandavid_github_token
/home/centos/tmp/gcloud/gcloud
docker run -it -e CLOUDSDK_CONFIG=/home/centos/tmp/gcloud/gcloud -v /home/centos/tmp/gcloud/gcloud:/home/centos/tmp/gcloud/gcloud -v /home/david/gcp-key.json:/home/centos/tmp/gcloud/gcp-key.json google/cloud-sdk:latest gcloud secrets versions access 1 --secret=uat-juandavid_github_token
docker run -it -e CLOUDSDK_CONFIG=/home/centos/tmp/gcloud2/gcloud -v /home/centos/tmp/gcloud2/gcloud:/home/centos/tmp/gcloud2/gcloud -v /home/david/gcp-key.json:/home/centos/tmp/gcloud2/gcp-key.json google/cloud-sdk:latest gcloud secrets versions access 1 --secret=temporal
docker run -it -e CLOUDSDK_CONFIG=/home/centos/tmp/gcloud/gcloud -v /home/centos/tmp/gcloud/gcloud:/home/centos/tmp/gcloud/gcloud -v /home/david/gcp-key.json:/home/centos/tmp/gcloud/gcp-key.json google/cloud-sdk:latest gcloud config set project dev-test-29-uat