|
90 | 90 | jobs: |
91 | 91 | docker-build: |
92 | 92 | if: github.event_name == 'workflow_dispatch' && github.event.inputs.build_docker_image == 'true' |
93 | | - runs-on: windows-latest |
| 93 | + runs-on: ubuntu-latest |
94 | 94 | outputs: |
95 | 95 | IMAGE_TAG: ${{ steps.generate_docker_tag.outputs.IMAGE_TAG }} |
96 | 96 | steps: |
@@ -344,20 +344,20 @@ jobs: |
344 | 344 |
|
345 | 345 | - name: Generate Resource Group Name |
346 | 346 | id: generate_rg_name |
347 | | - shell: bash |
| 347 | + shell: powershell |
348 | 348 | run: | |
349 | 349 | # Check if a resource group name was provided as input |
350 | | - if [[ -n "${{ github.event.inputs.resource_group_name }}" ]]; then |
351 | | - echo "Using provided Resource Group name: ${{ github.event.inputs.resource_group_name }}" |
352 | | - echo "RESOURCE_GROUP_NAME=${{ github.event.inputs.resource_group_name }}" >> $GITHUB_ENV |
353 | | - else |
354 | | - echo "Generating a unique resource group name..." |
355 | | - ACCL_NAME="cp" # Account name as specified |
356 | | - SHORT_UUID=$(uuidgen | cut -d'-' -f1) |
357 | | - UNIQUE_RG_NAME="arg-${ACCL_NAME}-${SHORT_UUID}" |
358 | | - echo "RESOURCE_GROUP_NAME=${UNIQUE_RG_NAME}" >> $GITHUB_ENV |
359 | | - echo "Generated RESOURCE_GROUP_NAME: ${UNIQUE_RG_NAME}" |
360 | | - fi |
| 350 | + if ("${{ github.event.inputs.resource_group_name }}" -ne "") { |
| 351 | + Write-Host "Using provided Resource Group name: ${{ github.event.inputs.resource_group_name }}" |
| 352 | + "RESOURCE_GROUP_NAME=${{ github.event.inputs.resource_group_name }}" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append |
| 353 | + } else { |
| 354 | + Write-Host "Generating a unique resource group name..." |
| 355 | + $ACCL_NAME = "cp" # Account name as specified |
| 356 | + $SHORT_UUID = ([guid]::NewGuid().ToString().Split('-')[0]) |
| 357 | + $UNIQUE_RG_NAME = "arg-${ACCL_NAME}-${SHORT_UUID}" |
| 358 | + "RESOURCE_GROUP_NAME=${UNIQUE_RG_NAME}" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append |
| 359 | + Write-Host "Generated RESOURCE_GROUP_NAME: ${UNIQUE_RG_NAME}" |
| 360 | + } |
361 | 361 |
|
362 | 362 | - name: Setup Azure Developer CLI |
363 | 363 | shell: bash |
|
0 commit comments