mirror of
https://github.com/ModernRelay/omnigraph.git
synced 2026-06-15 01:55:13 +02:00
Merge pull request #35 from ModernRelay/fix/package-caller-secrets-inherit
package caller: pass AWS secrets via secrets: inherit
This commit is contained in:
commit
dc5718fd43
1 changed files with 4 additions and 10 deletions
14
.github/workflows/package.yml
vendored
14
.github/workflows/package.yml
vendored
|
|
@ -9,8 +9,8 @@ name: Package
|
||||||
# AWS_ARTIFACT_BUCKET are set. Stored as secrets (not variables) so the
|
# AWS_ARTIFACT_BUCKET are set. Stored as secrets (not variables) so the
|
||||||
# AWS account ID embedded in the role ARN and bucket name stays masked in
|
# AWS account ID embedded in the role ARN and bucket name stays masked in
|
||||||
# public workflow logs.
|
# public workflow logs.
|
||||||
# - The shared workflow at ModernRelay/.github supports the `features` and
|
# - The shared workflow at ModernRelay/.github declares these as
|
||||||
# `image_tag_suffix` inputs (ModernRelay/.github PR #2 or later).
|
# on.workflow_call.secrets (see fix/omnigraph-package-use-secrets).
|
||||||
#
|
#
|
||||||
# Each invocation produces two ECR tags per source commit:
|
# Each invocation produces two ECR tags per source commit:
|
||||||
# - <source_sha> (default features)
|
# - <source_sha> (default features)
|
||||||
|
|
@ -36,10 +36,7 @@ jobs:
|
||||||
with:
|
with:
|
||||||
repository: ${{ github.repository }}
|
repository: ${{ github.repository }}
|
||||||
source_ref: ${{ inputs.source_ref != '' && inputs.source_ref || github.sha }}
|
source_ref: ${{ inputs.source_ref != '' && inputs.source_ref || github.sha }}
|
||||||
aws_region: ${{ secrets.AWS_REGION }}
|
secrets: inherit
|
||||||
aws_role_to_assume: ${{ secrets.AWS_ROLE_TO_ASSUME }}
|
|
||||||
aws_codebuild_package_project: ${{ secrets.AWS_CODEBUILD_PACKAGE_PROJECT }}
|
|
||||||
aws_artifact_bucket: ${{ secrets.AWS_ARTIFACT_BUCKET }}
|
|
||||||
|
|
||||||
package_aws:
|
package_aws:
|
||||||
name: Package aws-feature build
|
name: Package aws-feature build
|
||||||
|
|
@ -51,9 +48,6 @@ jobs:
|
||||||
with:
|
with:
|
||||||
repository: ${{ github.repository }}
|
repository: ${{ github.repository }}
|
||||||
source_ref: ${{ inputs.source_ref != '' && inputs.source_ref || github.sha }}
|
source_ref: ${{ inputs.source_ref != '' && inputs.source_ref || github.sha }}
|
||||||
aws_region: ${{ secrets.AWS_REGION }}
|
|
||||||
aws_role_to_assume: ${{ secrets.AWS_ROLE_TO_ASSUME }}
|
|
||||||
aws_codebuild_package_project: ${{ secrets.AWS_CODEBUILD_PACKAGE_PROJECT }}
|
|
||||||
aws_artifact_bucket: ${{ secrets.AWS_ARTIFACT_BUCKET }}
|
|
||||||
features: aws
|
features: aws
|
||||||
image_tag_suffix: "-aws"
|
image_tag_suffix: "-aws"
|
||||||
|
secrets: inherit
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue