-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b53c048
commit ab5ceda
Showing
2 changed files
with
32 additions
and
16 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -77,18 +77,26 @@ jobs: | |
# delete bakup file | ||
rm "$SERVICE.yaml.bak" | ||
# Setup gcloud CLI | ||
- name: Set up Cloud SDK | ||
uses: google-github-actions/setup-gcloud@v0 | ||
- name: Enable auth plugin | ||
run: | | ||
echo "USE_GKE_GCLOUD_AUTH_PLUGIN=True" >> $GITHUB_ENV | ||
# Auth to GKE | ||
- name: Authenticate to GKE | ||
uses: google-github-actions/auth@v1 | ||
with: | ||
service_account_email: [email protected] | ||
service_account_key: ${{ secrets.GKE_SA_KEY }} | ||
project_id: wire-bot | ||
export_default_credentials: true | ||
credentials_json: ${{ secrets.GKE_SA_KEY }} | ||
service_account: [email protected] | ||
|
||
# Setup gcloud CLI | ||
- name: Set up Cloud SDK | ||
uses: google-github-actions/setup-gcloud@v1 | ||
|
||
# Configure Docker to use the gcloud command-line tool | ||
- name: Configure Docker Google cloud | ||
# Prepare components | ||
- name: Prepare gcloud components | ||
run: | | ||
gcloud components install gke-gcloud-auth-plugin | ||
gcloud components update | ||
gcloud --quiet auth configure-docker | ||
# Get the GKE credentials so we can deploy to the cluster | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -50,18 +50,26 @@ jobs: | |
build-args: | | ||
release_version=${{ env.RELEASE_VERSION }} | ||
# Setup gcloud CLI | ||
- name: Set up Cloud SDK | ||
uses: google-github-actions/setup-gcloud@v0 | ||
- name: Enable auth plugin | ||
run: | | ||
echo "USE_GKE_GCLOUD_AUTH_PLUGIN=True" >> $GITHUB_ENV | ||
# Auth to GKE | ||
- name: Authenticate to GKE | ||
uses: google-github-actions/auth@v1 | ||
with: | ||
service_account_email: [email protected] | ||
service_account_key: ${{ secrets.GKE_SA_KEY }} | ||
project_id: wire-bot | ||
export_default_credentials: true | ||
credentials_json: ${{ secrets.GKE_SA_KEY }} | ||
service_account: [email protected] | ||
|
||
# Setup gcloud CLI | ||
- name: Set up Cloud SDK | ||
uses: google-github-actions/setup-gcloud@v1 | ||
|
||
# Configure Docker to use the gcloud command-line tool | ||
- name: Configure Docker Google cloud | ||
# Prepare components | ||
- name: Prepare gcloud components | ||
run: | | ||
gcloud components install gke-gcloud-auth-plugin | ||
gcloud components update | ||
gcloud --quiet auth configure-docker | ||
# Get the GKE credentials so we can deploy to the cluster | ||
|