Skip to content

Commit

Permalink
Update github-action ci step to v1
Browse files Browse the repository at this point in the history
  • Loading branch information
spoonman01 committed Sep 19, 2024
1 parent b53c048 commit ab5ceda
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 16 deletions.
24 changes: 16 additions & 8 deletions .github/workflows/prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
24 changes: 16 additions & 8 deletions .github/workflows/staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ab5ceda

Please sign in to comment.