Skip to content

armgit / kaneo

Public Imported from GitHub
0

⚡ Project management that doesn't become the project. Boards, Gantt charts, and GitHub integration. Self-host it or use Kaneo Cloud.

fix(ci): declare and pass required secrets to image build workflow

justin4c8dda53c55e
diff --git a/.github/workflows/build-images.yml b/.github/workflows/build-images.yml
index fa3400de0..5cdbbf173 100644
--- a/.github/workflows/build-images.yml
+++ b/.github/workflows/build-images.yml
@@ -21,6 +21,13 @@ on:
required: false
type: string
default: linux/amd64,linux/arm64
+ secrets:
+ # GHCR login token with package push rights.
+ GH_PACKAGE_TOKEN:
+ required: true
+ # Source-map upload token; only the web image build uses it.
+ SENTRY_AUTH_TOKEN:
+ required: false
jobs:
build:
diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml
index cbb32c921..8e4f6cd06 100644
--- a/.github/workflows/docker.yml
+++ b/.github/workflows/docker.yml
@@ -19,8 +19,11 @@ jobs:
permissions:
contents: read
packages: write
+
uses: ./.github/workflows/build-images.yml
- secrets: inherit
+ secrets:
+ GH_PACKAGE_TOKEN: ${{ secrets.GH_PACKAGE_TOKEN }}
+ SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
with:
source_mode: released
version: ${{ inputs.version }}
diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml
index e017c5621..2cfeeb8b9 100644
--- a/.github/workflows/nightly.yml
+++ b/.github/workflows/nightly.yml
@@ -187,6 +187,7 @@ jobs:
verify:
name: Verify nightly build
if: ${{ github.ref == format('refs/heads/{0}', github.event.repository.default_branch) }}
+
uses: ./.github/workflows/ci.yml
publish-images:
@@ -196,8 +197,11 @@ jobs:
permissions:
contents: read
packages: write
+
uses: ./.github/workflows/build-images.yml
- secrets: inherit
+ secrets:
+ GH_PACKAGE_TOKEN: ${{ secrets.GH_PACKAGE_TOKEN }}
+ SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
with:
source_mode: nightly
tags: |
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index f40d9cad8..189bc79fe 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -124,8 +124,11 @@ jobs:
permissions:
contents: read
packages: write
+
uses: ./.github/workflows/build-images.yml
- secrets: inherit
+ secrets:
+ GH_PACKAGE_TOKEN: ${{ secrets.GH_PACKAGE_TOKEN }}
+ SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
with:
source_mode: planned
version: ${{ needs.plan.outputs.version }}
@@ -137,6 +140,7 @@ jobs:
if: ${{ !inputs.dry_run && needs.plan.outputs.version != '' }}
permissions:
contents: read
+
uses: ./.github/workflows/helm-validate.yml
release:
@@ -233,6 +237,7 @@ jobs:
permissions:
contents: read
packages: write
+
uses: ./.github/workflows/helm-chart.yml
with:
version: ${{ needs.plan.outputs.version }}