problem: GCP auth migrated to a separate action and doesn't work the old way
This commit is contained in:
12
.github/workflows/artifacts.yaml
vendored
12
.github/workflows/artifacts.yaml
vendored
@@ -1,13 +1,11 @@
|
|||||||
name: Artifacts
|
name: Artifacts
|
||||||
|
|
||||||
on:
|
on:
|
||||||
# if pushed directly
|
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- master
|
- master
|
||||||
- release/*
|
- release/*
|
||||||
- ci/*
|
- ci/*
|
||||||
# on a pull request
|
|
||||||
pull_request:
|
pull_request:
|
||||||
branches:
|
branches:
|
||||||
- master
|
- master
|
||||||
@@ -18,6 +16,7 @@ jobs:
|
|||||||
|
|
||||||
publish-gcp:
|
publish-gcp:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout the code
|
- name: Checkout the code
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
@@ -27,12 +26,13 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
java-version: 13
|
java-version: 13
|
||||||
|
|
||||||
|
- name: Auth GCP
|
||||||
|
uses: google-github-actions/auth@v0
|
||||||
|
with:
|
||||||
|
credentials_json: ${{ secrets.GCP_ARTIFACTS_KEY }}
|
||||||
|
|
||||||
- name: Setup GCP
|
- name: Setup GCP
|
||||||
uses: google-github-actions/setup-gcloud@v0
|
uses: google-github-actions/setup-gcloud@v0
|
||||||
with:
|
|
||||||
project_id: ${{ secrets.GCP_PROJECT_ID }}
|
|
||||||
service_account_key: ${{ secrets.GCP_ARTIFACTS_KEY }}
|
|
||||||
export_default_credentials: true
|
|
||||||
|
|
||||||
# needed for GitVersion
|
# needed for GitVersion
|
||||||
- name: Fetch all history
|
- name: Fetch all history
|
||||||
|
|||||||
Reference in New Issue
Block a user