Skip to content

Commit

Permalink
Merge pull request #21 from danfengliu/gcp8
Browse files Browse the repository at this point in the history
8
  • Loading branch information
danfengliu authored Nov 7, 2022
2 parents 5417d12 + f0f0e5f commit 49f8412
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,15 @@ jobs:
go-version: 1.18
id: go

- name: Check out code into the Go module directory
uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: google-github-actions/setup-gcloud@v0
with:
version: '285.0.0'
project_id: ${{ secrets.GCP_PROJECT_ID }}
service_account_email: ${{ secrets.GCP_SA_EMAIL }}
service_account_key: ${{ secrets.GCP_SA_KEY }}
export_default_credentials: true
- run: gcloud info

- name: Set up QEMU
id: qemu
Expand All @@ -41,15 +48,7 @@ jobs:

- name: Test
run: make test
- uses: actions/checkout@v3
- uses: google-github-actions/setup-gcloud@v0
with:
version: '285.0.0'
project_id: ${{ secrets.GCP_PROJECT_ID }}
service_account_email: ${{ secrets.GCP_SA_EMAIL }}
service_account_key: ${{ secrets.GCP_SA_KEY }}
export_default_credentials: true
- run: gcloud info


# Only try to publish the container image from the root repo; forks don't have permission to do so and will always get failures.
- name: Publish container image
Expand Down

0 comments on commit 49f8412

Please sign in to comment.