diff --git a/.github/workflows/regenerate.yml b/.github/workflows/regenerate.yml index 7a9bce1..4680770 100644 --- a/.github/workflows/regenerate.yml +++ b/.github/workflows/regenerate.yml @@ -21,7 +21,7 @@ on: type: boolean default: false ref: - description: A branch of the template to generate the preview branch from, for a pull request under review; empty for the daily check + description: A branch of the template to generate the preview branches from, for a pull request under review; empty for the daily check type: string default: '' @@ -46,10 +46,10 @@ jobs: FORCE: ${{ inputs.force }} PREVIEW_REF: ${{ inputs.ref }} run: | - # A pull request of the template under review: only the preview branch, from its branch. + # A pull request of the template under review: only the preview branches, from its branch. if [ -n "$PREVIEW_REF" ]; then echo "tag=$PREVIEW_REF" >> "$GITHUB_OUTPUT" - echo "branches=$(jq -cn --arg f "$PREVIEW_REF" '[{branch: "preview", from: $f}]')" >> "$GITHUB_OUTPUT" + echo "branches=$(jq -c --arg f "$PREVIEW_REF" '[.[] | select(.onDemand == true) | {branch, from: $f}]' .samples/variants.json)" >> "$GITHUB_OUTPUT" echo "regenerate=true" >> "$GITHUB_OUTPUT" exit 0 fi diff --git a/.samples/variants.json b/.samples/variants.json index 2d670ac..30ea5dd 100644 --- a/.samples/variants.json +++ b/.samples/variants.json @@ -43,5 +43,15 @@ "-N ST -P DotNetSolutionKit.Samples -S Billing --Messaging outbox -I true --DiffApi true --FeatureFlags true --Storage true --ClickHouse true", "-N ST -P DotNetSolutionKit.Samples -S Gateway --ApiGateway true" ] + }, + { + "branch": "preview-vault", + "ref": "master", + "onDemand": true, + "about": "Secrets from HashiCorp Vault instead of Infisical, with the bus, the audit journal and the API diff; generated on demand with preview, from the branch of the template under review.", + "generate": [ + "-N ST -P DotNetSolutionKit.Samples -S Orders -M false --GitHubCiCd true --Vault true --Messaging outbox --Audit true --DiffApi true", + "-N ST -P DotNetSolutionKit.Samples -S Billing --Vault true --Messaging outbox --Audit true --DiffApi true" + ] } ]