Skip to content

Add component level radix config properties (#1081) #629

Add component level radix config properties (#1081)

Add component level radix config properties (#1081) #629

Workflow file for this run

name: radix-operator-build
on:
push:
branches:
- master
- release
permissions:
id-token: write
jobs:
get-target-configs:
name: Get target configs for branch
outputs:
target_configs: ${{ steps.get-target-configs.outputs.target_configs }}
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
- name: Get target configs
id: get-target-configs
run: |
configs=$(ls $GITHUB_WORKSPACE/.github/workflows/config/${GITHUB_REF_NAME} | jq -Rsc '. / "\n" - [""]')
echo "target_configs=${configs}" >> $GITHUB_OUTPUT
build-deploy-pipeline-and-operator:
name: " "
runs-on: ubuntu-20.04
needs:
- get-target-configs
strategy:
fail-fast: false
matrix:
config: ${{ fromJson(needs.get-target-configs.outputs.target_configs) }}
script: [build-push-operator.sh, build-push-pipeline.sh]
steps:
- uses: actions/checkout@v4
- name: Persist environment from ${{ matrix.config }} across steps
run: |
$GITHUB_WORKSPACE/.github/workflows/scripts/persist-env.sh ${{ matrix.config }}
- uses: azure/login@v1
with:
client-id: ${{ env.AZURE_CLIENT_ID }}
tenant-id: ${{ env.AZURE_TENANT_ID }}
subscription-id: ${{ env.AZURE_SUBSCRIPTION_ID }}
- name: Build and push image
run: |
$GITHUB_WORKSPACE/.github/workflows/scripts/${{ matrix.script }}