Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
* fix ci

* Update .github/workflows/ci.yml
  • Loading branch information
fgksgf authored and tangenti committed Jan 19, 2022
1 parent 66416fa commit cda551d
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ on:
- pingcap/provider-aws
tags:
- "*"
# Uncomment below lines to debug this action in PR
# pull_request:
# branches:
# - pingcap/provider-aws

env:
GO_VERSION: '1.14'
Expand Down Expand Up @@ -50,12 +54,18 @@ jobs:
working-directory: ./
run: CGO_ENABLED=0 GOOS=linux go build -o docker/crossplane-aws-provider cmd/provider/main.go

- name: Setup gcloud CLI
uses: google-github-actions/setup-gcloud@master
- id: auth
uses: google-github-actions/[email protected]
with:
credentials_json: ${{ secrets.PUB_GCR_SA_KEY }}

- name: Set up Cloud SDK
uses: google-github-actions/[email protected]
with:
service_account_key: ${{ secrets.PUB_GCR_SA_KEY }}
project_id: ${{ env.PROJECT_ID }}
export_default_credentials: truea

- name: Test gcloud CLI
run: gcloud info

- name: Configure docker to use the gcloud command-line tool as a credential helper
run: |
Expand Down

0 comments on commit cda551d

Please sign in to comment.