Skip to content

Commit

Permalink
fix: add google auth to image steps
Browse files Browse the repository at this point in the history
  • Loading branch information
trevorwhitney committed Jan 26, 2024
1 parent cc8ce7a commit 85cba30
Show file tree
Hide file tree
Showing 2 changed files with 62 additions and 0 deletions.
60 changes: 60 additions & 0 deletions .github/workflows/release-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,12 @@ jobs:
with:
cache-dependency-path: "release/go.sum"
go-version-file: "release/go.mod"
- env:
ACTIONS_STEP_DEBUG: "true"
name: "auth gcs"
uses: "google-github-actions/auth@v2"
with:
credentials_json: "${{ secrets.GCS_SERVICE_ACCOUNT_KEY }}"
- name: "Set up QEMU"
uses: "docker/setup-qemu-action@v3"
- name: "set up docker buildx"
Expand Down Expand Up @@ -281,6 +287,12 @@ jobs:
with:
cache-dependency-path: "release/go.sum"
go-version-file: "release/go.mod"
- env:
ACTIONS_STEP_DEBUG: "true"
name: "auth gcs"
uses: "google-github-actions/auth@v2"
with:
credentials_json: "${{ secrets.GCS_SERVICE_ACCOUNT_KEY }}"
- name: "Set up QEMU"
uses: "docker/setup-qemu-action@v3"
- name: "set up docker buildx"
Expand Down Expand Up @@ -426,6 +438,12 @@ jobs:
with:
cache-dependency-path: "release/go.sum"
go-version-file: "release/go.mod"
- env:
ACTIONS_STEP_DEBUG: "true"
name: "auth gcs"
uses: "google-github-actions/auth@v2"
with:
credentials_json: "${{ secrets.GCS_SERVICE_ACCOUNT_KEY }}"
- name: "Set up QEMU"
uses: "docker/setup-qemu-action@v3"
- name: "set up docker buildx"
Expand Down Expand Up @@ -482,6 +500,12 @@ jobs:
with:
cache-dependency-path: "release/go.sum"
go-version-file: "release/go.mod"
- env:
ACTIONS_STEP_DEBUG: "true"
name: "auth gcs"
uses: "google-github-actions/auth@v2"
with:
credentials_json: "${{ secrets.GCS_SERVICE_ACCOUNT_KEY }}"
- name: "Set up QEMU"
uses: "docker/setup-qemu-action@v3"
- name: "set up docker buildx"
Expand Down Expand Up @@ -536,6 +560,12 @@ jobs:
with:
cache-dependency-path: "release/go.sum"
go-version-file: "release/go.mod"
- env:
ACTIONS_STEP_DEBUG: "true"
name: "auth gcs"
uses: "google-github-actions/auth@v2"
with:
credentials_json: "${{ secrets.GCS_SERVICE_ACCOUNT_KEY }}"
- name: "Set up QEMU"
uses: "docker/setup-qemu-action@v3"
- name: "set up docker buildx"
Expand Down Expand Up @@ -592,6 +622,12 @@ jobs:
with:
cache-dependency-path: "release/go.sum"
go-version-file: "release/go.mod"
- env:
ACTIONS_STEP_DEBUG: "true"
name: "auth gcs"
uses: "google-github-actions/auth@v2"
with:
credentials_json: "${{ secrets.GCS_SERVICE_ACCOUNT_KEY }}"
- name: "Set up QEMU"
uses: "docker/setup-qemu-action@v3"
- name: "set up docker buildx"
Expand Down Expand Up @@ -648,6 +684,12 @@ jobs:
with:
cache-dependency-path: "release/go.sum"
go-version-file: "release/go.mod"
- env:
ACTIONS_STEP_DEBUG: "true"
name: "auth gcs"
uses: "google-github-actions/auth@v2"
with:
credentials_json: "${{ secrets.GCS_SERVICE_ACCOUNT_KEY }}"
- name: "Set up QEMU"
uses: "docker/setup-qemu-action@v3"
- name: "set up docker buildx"
Expand Down Expand Up @@ -704,6 +746,12 @@ jobs:
with:
cache-dependency-path: "release/go.sum"
go-version-file: "release/go.mod"
- env:
ACTIONS_STEP_DEBUG: "true"
name: "auth gcs"
uses: "google-github-actions/auth@v2"
with:
credentials_json: "${{ secrets.GCS_SERVICE_ACCOUNT_KEY }}"
- name: "Set up QEMU"
uses: "docker/setup-qemu-action@v3"
- name: "set up docker buildx"
Expand Down Expand Up @@ -760,6 +808,12 @@ jobs:
with:
cache-dependency-path: "release/go.sum"
go-version-file: "release/go.mod"
- env:
ACTIONS_STEP_DEBUG: "true"
name: "auth gcs"
uses: "google-github-actions/auth@v2"
with:
credentials_json: "${{ secrets.GCS_SERVICE_ACCOUNT_KEY }}"
- name: "Set up QEMU"
uses: "docker/setup-qemu-action@v3"
- name: "set up docker buildx"
Expand Down Expand Up @@ -816,6 +870,12 @@ jobs:
with:
cache-dependency-path: "release/go.sum"
go-version-file: "release/go.mod"
- env:
ACTIONS_STEP_DEBUG: "true"
name: "auth gcs"
uses: "google-github-actions/auth@v2"
with:
credentials_json: "${{ secrets.GCS_SERVICE_ACCOUNT_KEY }}"
- name: "Set up QEMU"
uses: "docker/setup-qemu-action@v3"
- name: "set up docker buildx"
Expand Down
2 changes: 2 additions & 0 deletions workflows/lib/build.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ local releaseStep = common.releaseStep;
+ job.withSteps([
common.fetchReleaseRepo,
common.setupGo,
common.googleAuth,

step.new('Set up QEMU', 'docker/setup-qemu-action@v3'),
step.new('set up docker buildx', 'docker/setup-buildx-action@v3'),
releaseStep('parse image metadata')
Expand Down

0 comments on commit 85cba30

Please sign in to comment.