-
Notifications
You must be signed in to change notification settings - Fork 253
53 lines (49 loc) · 1.65 KB
/
Copy pathpackage.yml
File metadata and controls
53 lines (49 loc) · 1.65 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: Package
# Builds both the default and aws-feature omnigraph-server images and pushes
# them to ECR. Invoked manually via workflow_dispatch — not wired to tags or
# main pushes today.
#
# Prerequisites:
# - Repo secrets AWS_REGION, AWS_ROLE_TO_ASSUME, AWS_CODEBUILD_PACKAGE_PROJECT,
# 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 checked-in reusable workflow declares these as
# on.workflow_call.secrets.
#
# Each invocation produces two ECR tags per source commit:
# - <source_sha> (default features)
# - <source_sha>-aws (--features aws)
on:
workflow_dispatch:
inputs:
source_ref:
description: Git ref to package (branch, tag, or SHA). Defaults to the workflow's own ref.
required: false
type: string
default: ""
jobs:
package_default:
name: Package default build
uses: ./.github/workflows/omnigraph-package.yml
permissions:
id-token: write
contents: read
attestations: write
with:
repository: ${{ github.repository }}
source_ref: ${{ inputs.source_ref != '' && inputs.source_ref || github.sha }}
secrets: inherit
package_aws:
name: Package aws-feature build
uses: ./.github/workflows/omnigraph-package.yml
permissions:
id-token: write
contents: read
attestations: write
with:
repository: ${{ github.repository }}
source_ref: ${{ inputs.source_ref != '' && inputs.source_ref || github.sha }}
features: aws
image_tag_suffix: "-aws"
secrets: inherit