Update build-release to leverage GITHUB_OUTPUT to store delivery options (#113)
This commit is contained in:
1 parent
de28c09f3d
commit
8c423ec140
1 file changed
+8
-4
@@ -167,13 +167,13 @@ jobs:
|
|||||||
# Generate DeliveryOptions
|
# Generate DeliveryOptions
|
||||||
# Delivery options are ECS(-Anywhere), EKS(-Anywhere), and Bedrock Agentcore
|
# Delivery options are ECS(-Anywhere), EKS(-Anywhere), and Bedrock Agentcore
|
||||||
- name: Generate DeliveryOptions
|
- name: Generate DeliveryOptions
|
||||||
|
id: delivery_options
|
||||||
env:
|
env:
|
||||||
MARKETPL_REGISTRY: ${{ steps.login-ecr.outputs.registry }}
|
MARKETPL_REGISTRY: ${{ steps.login-ecr.outputs.registry }}
|
||||||
MARKETPL_REPOSITORY: brave/brave-search-mcp
|
MARKETPL_REPOSITORY: brave/brave-search-mcp
|
||||||
IMAGE_RELEASE_TAG: ${{ steps.bump-version.outputs.tag }}
|
IMAGE_RELEASE_TAG: ${{ steps.bump-version.outputs.tag }}
|
||||||
run: |
|
run: |
|
||||||
echo "DELIVERY_OPTIONS<<EOF" >> $GITHUB_ENV
|
json=$(cat <<EOF
|
||||||
cat >> $GITHUB_ENV <<'EOF'
|
|
||||||
[
|
[
|
||||||
{
|
{
|
||||||
"DeliveryOptionTitle": "Brave Search MCP Server",
|
"DeliveryOptionTitle": "Brave Search MCP Server",
|
||||||
@@ -219,10 +219,14 @@ jobs:
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
EOF
|
EOF
|
||||||
|
)
|
||||||
|
echo "DELIVERY_OPTIONS=$(echo "$json" | jq -c .)" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Update DeliveryOptions in marketplace-revision-release.yaml
|
- name: Update DeliveryOptions in marketplace-revision-release.yaml
|
||||||
run: yq -i '.ChangeSet[].DetailsDocument.DeliveryOptions = fromjson($DELIVERY_OPTIONS)' marketplace-revision-release.yaml
|
env:
|
||||||
|
DELIVERY_OPTIONS: ${{ steps.delivery_options.outputs.DELIVERY_OPTIONS }}
|
||||||
|
run: yq -i '.ChangeSet[].DetailsDocument.DeliveryOptions = fromjson(env.DELIVERY_OPTIONS)' marketplace-revision-release.yaml
|
||||||
|
|
||||||
- name: Publish New Release to AWS Marketplace Catalog Management Portal
|
- name: Publish New Release to AWS Marketplace Catalog Management Portal
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
Reference in new issue
Block a user