This repository was archived by the owner on Oct 21, 2024. It is now read-only.
File tree 2 files changed +34
-16
lines changed
2 files changed +34
-16
lines changed Original file line number Diff line number Diff line change @@ -77,18 +77,27 @@ jobs:
77
77
# delete bakup file
78
78
rm "$SERVICE.yaml.bak"
79
79
80
+ - name : Enable auth plugin
81
+ run : |
82
+ echo "USE_GKE_GCLOUD_AUTH_PLUGIN=True" >> $GITHUB_ENV
83
+
84
+ # Auth to GKE
85
+ - name : Authenticate to GKE
86
+ uses : google-github-actions/auth@v1
87
+ with :
88
+ project_id : wire-bot
89
+ credentials_json : ${{ secrets.GKE_SA_KEY }}
90
+ service_account : kubernetes-deployment-agent@wire-bot.iam.gserviceaccount.com
91
+
80
92
# Setup gcloud CLI
81
93
- name : Set up Cloud SDK
82
- uses : google-github-actions/setup-gcloud@v0
83
- with :
84
- service_account_email : kubernetes-deployment-agent@wire-bot.iam.gserviceaccount.com
85
- service_account_key : ${{ secrets.GKE_SA_KEY }}
86
- project_id : wire-bot
87
- export_default_credentials : true
94
+ uses : google-github-actions/setup-gcloud@v1
88
95
89
- # Configure Docker to use the gcloud command-line tool
90
- - name : Configure Docker Google cloud
96
+ # Prepare components
97
+ - name : Prepare gcloud components
91
98
run : |
99
+ gcloud components install gke-gcloud-auth-plugin
100
+ gcloud components update
92
101
gcloud --quiet auth configure-docker
93
102
94
103
# Get the GKE credentials so we can deploy to the cluster
Original file line number Diff line number Diff line change @@ -50,18 +50,27 @@ jobs:
50
50
build-args : |
51
51
release_version=${{ env.RELEASE_VERSION }}
52
52
53
+ - name : Enable auth plugin
54
+ run : |
55
+ echo "USE_GKE_GCLOUD_AUTH_PLUGIN=True" >> $GITHUB_ENV
56
+
57
+ # Auth to GKE
58
+ - name : Authenticate to GKE
59
+ uses : google-github-actions/auth@v1
60
+ with :
61
+ project_id : wire-bot
62
+ credentials_json : ${{ secrets.GKE_SA_KEY }}
63
+ service_account : kubernetes-deployment-agent@wire-bot.iam.gserviceaccount.com
64
+
53
65
# Setup gcloud CLI
54
66
- name : Set up Cloud SDK
55
- uses : google-github-actions/setup-gcloud@v0
56
- with :
57
- service_account_email : kubernetes-deployment-agent@wire-bot.iam.gserviceaccount.com
58
- service_account_key : ${{ secrets.GKE_SA_KEY }}
59
- project_id : wire-bot
60
- export_default_credentials : true
67
+ uses : google-github-actions/setup-gcloud@v1
61
68
62
- # Configure Docker to use the gcloud command-line tool
63
- - name : Configure Docker Google cloud
69
+ # Prepare components
70
+ - name : Prepare gcloud components
64
71
run : |
72
+ gcloud components install gke-gcloud-auth-plugin
73
+ gcloud components update
65
74
gcloud --quiet auth configure-docker
66
75
67
76
# Get the GKE credentials so we can deploy to the cluster
You can’t perform that action at this time.
0 commit comments