mirror of
https://github.com/ModernRelay/omnigraph.git
synced 2026-06-30 02:49:39 +02:00
Merge pull request #34 from ModernRelay/fix/package-workflow-use-secrets
package workflow: read AWS config from secrets, not variables
This commit is contained in:
commit
eeb890a4f5
1 changed files with 12 additions and 10 deletions
22
.github/workflows/package.yml
vendored
22
.github/workflows/package.yml
vendored
|
|
@ -5,8 +5,10 @@ name: Package
|
||||||
# main pushes today.
|
# main pushes today.
|
||||||
#
|
#
|
||||||
# Prerequisites:
|
# Prerequisites:
|
||||||
# - Repo vars AWS_REGION, AWS_ROLE_TO_ASSUME, AWS_CODEBUILD_PACKAGE_PROJECT,
|
# - Repo secrets AWS_REGION, AWS_ROLE_TO_ASSUME, AWS_CODEBUILD_PACKAGE_PROJECT,
|
||||||
# AWS_ARTIFACT_BUCKET are set.
|
# 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
|
||||||
|
# public workflow logs.
|
||||||
# - The shared workflow at ModernRelay/.github supports the `features` and
|
# - The shared workflow at ModernRelay/.github supports the `features` and
|
||||||
# `image_tag_suffix` inputs (ModernRelay/.github PR #2 or later).
|
# `image_tag_suffix` inputs (ModernRelay/.github PR #2 or later).
|
||||||
#
|
#
|
||||||
|
|
@ -34,10 +36,10 @@ 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: ${{ vars.AWS_REGION }}
|
aws_region: ${{ secrets.AWS_REGION }}
|
||||||
aws_role_to_assume: ${{ vars.AWS_ROLE_TO_ASSUME }}
|
aws_role_to_assume: ${{ secrets.AWS_ROLE_TO_ASSUME }}
|
||||||
aws_codebuild_package_project: ${{ vars.AWS_CODEBUILD_PACKAGE_PROJECT }}
|
aws_codebuild_package_project: ${{ secrets.AWS_CODEBUILD_PACKAGE_PROJECT }}
|
||||||
aws_artifact_bucket: ${{ vars.AWS_ARTIFACT_BUCKET }}
|
aws_artifact_bucket: ${{ secrets.AWS_ARTIFACT_BUCKET }}
|
||||||
|
|
||||||
package_aws:
|
package_aws:
|
||||||
name: Package aws-feature build
|
name: Package aws-feature build
|
||||||
|
|
@ -49,9 +51,9 @@ 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: ${{ vars.AWS_REGION }}
|
aws_region: ${{ secrets.AWS_REGION }}
|
||||||
aws_role_to_assume: ${{ vars.AWS_ROLE_TO_ASSUME }}
|
aws_role_to_assume: ${{ secrets.AWS_ROLE_TO_ASSUME }}
|
||||||
aws_codebuild_package_project: ${{ vars.AWS_CODEBUILD_PACKAGE_PROJECT }}
|
aws_codebuild_package_project: ${{ secrets.AWS_CODEBUILD_PACKAGE_PROJECT }}
|
||||||
aws_artifact_bucket: ${{ vars.AWS_ARTIFACT_BUCKET }}
|
aws_artifact_bucket: ${{ secrets.AWS_ARTIFACT_BUCKET }}
|
||||||
features: aws
|
features: aws
|
||||||
image_tag_suffix: "-aws"
|
image_tag_suffix: "-aws"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue