6060 if [[ "${{ secrets.ARTIFACTORY_USER }}" == "" ]]; then
6161 echo "No Artifactory secrets available - using direct GOPROXY"
6262 GOPROXY_VALUE="direct"
63- elif [[ "${{ inputs.is_production_release }}" == "true" ]] || [[ ("${{ github.event_name }}" == "push" || "${{ github.event_name }}" == "schedule") && "${{ github.ref }}" == "refs/heads/main" ]]; then
63+ elif [[ "${{ inputs.is_production_release }}" == "true" ]] || [[ ("${{ github.event_name }}" == "push" || "${{ github.event_name }}" == "schedule") && ( "${{ github.ref }}" == "refs/heads/main" || "${{ github.ref }}" =~ ^refs/heads/release-) ]]; then
6464 echo "Production mode - using production Artifactory"
6565 GOPROXY_VALUE="https://${{ secrets.ARTIFACTORY_USER }}:${{ secrets.ARTIFACTORY_TOKEN }}@${{ secrets.ARTIFACTORY_ENDPOINT }}"
6666 else
@@ -167,7 +167,7 @@ jobs:
167167
168168 binary :
169169 name : Build Binary
170- runs-on : ${{ github.repository_owner == 'nginx' && (inputs.is_production_release || ((github.event_name == 'push' || github.event_name == 'schedule') && github.ref == 'refs/heads/main')) && 'ubuntu-24.04-amd64' || 'ubuntu-24.04' }}
170+ runs-on : ${{ github.repository_owner == 'nginx' && (inputs.is_production_release || ((github.event_name == 'push' || github.event_name == 'schedule') && ( github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/heads/release-')) )) && 'ubuntu-24.04-amd64' || 'ubuntu-24.04' }}
171171 needs : [vars, unit-tests, njs-unit-tests]
172172 outputs :
173173 json : ${{ steps.gateway_binaries.outputs.json }}
@@ -187,7 +187,7 @@ jobs:
187187 if [[ "${{ secrets.ARTIFACTORY_USER }}" == "" ]]; then
188188 echo "No Artifactory secrets available - using direct GOPROXY"
189189 GOPROXY_VALUE="direct"
190- elif [[ "${{ inputs.is_production_release }}" == "true" ]] || [[ ("${{ github.event_name }}" == "push" || "${{ github.event_name }}" == "schedule") && "${{ github.ref }}" == "refs/heads/main" ]]; then
190+ elif [[ "${{ inputs.is_production_release }}" == "true" ]] || [[ ("${{ github.event_name }}" == "push" || "${{ github.event_name }}" == "schedule") && ( "${{ github.ref }}" == "refs/heads/main" || "${{ github.ref }}" =~ ^refs/heads/release-) ]]; then
191191 echo "Production mode - using production Artifactory"
192192 GOPROXY_VALUE="https://${{ secrets.ARTIFACTORY_USER }}:${{ secrets.ARTIFACTORY_TOKEN }}@${{ secrets.ARTIFACTORY_ENDPOINT }}"
193193 else
@@ -352,7 +352,7 @@ jobs:
352352 build-os : ${{ matrix.build-os }}
353353 tag : ${{ inputs.release_version || '' }}
354354 dry_run : ${{ inputs.dry_run || false}}
355- runner : ${{ github.repository_owner == 'nginx' && (inputs.is_production_release || ((github.event_name == 'push' || github.event_name == 'schedule') && github.ref == 'refs/heads/main')) && 'ubuntu-24.04-amd64' || 'ubuntu-24.04' }}
355+ runner : ${{ github.repository_owner == 'nginx' && (inputs.is_production_release || ((github.event_name == 'push' || github.event_name == 'schedule') && ( github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/heads/release-')) )) && 'ubuntu-24.04-amd64' || 'ubuntu-24.04' }}
356356 permissions :
357357 contents : read # for docker/build-push-action to read repo content
358358 security-events : write # for github/codeql-action/upload-sarif to upload SARIF results
@@ -374,7 +374,7 @@ jobs:
374374 build-os : ${{ matrix.build-os }}
375375 tag : ${{ inputs.release_version || '' }}
376376 dry_run : ${{ inputs.dry_run || false }}
377- runner : ${{ github.repository_owner == 'nginx' && (inputs.is_production_release || ((github.event_name == 'push' || github.event_name == 'schedule') && github.ref == 'refs/heads/main')) && 'ubuntu-24.04-amd64' || 'ubuntu-24.04' }}
377+ runner : ${{ github.repository_owner == 'nginx' && (inputs.is_production_release || ((github.event_name == 'push' || github.event_name == 'schedule') && ( github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/heads/release-')) )) && 'ubuntu-24.04-amd64' || 'ubuntu-24.04' }}
378378 permissions :
379379 contents : read # for docker/build-push-action to read repo content
380380 security-events : write # for github/codeql-action/upload-sarif to upload SARIF results
@@ -391,7 +391,7 @@ jobs:
391391 platforms : " linux/arm64, linux/amd64"
392392 tag : ${{ inputs.operator_version || '' }}
393393 dry_run : ${{ inputs.dry_run || false }}
394- runner : ${{ github.repository_owner == 'nginx' && (inputs.is_production_release || ((github.event_name == 'push' || github.event_name == 'schedule') && github.ref == 'refs/heads/main')) && 'ubuntu-24.04-amd64' || 'ubuntu-24.04' }}
394+ runner : ${{ github.repository_owner == 'nginx' && (inputs.is_production_release || ((github.event_name == 'push' || github.event_name == 'schedule') && ( github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/heads/release-')) )) && 'ubuntu-24.04-amd64' || 'ubuntu-24.04' }}
395395 permissions :
396396 contents : read # for docker/build-push-action to read repo content
397397 security-events : write # for github/codeql-action/upload-sarif to upload SARIF results
@@ -469,7 +469,7 @@ jobs:
469469
470470 publish-helm :
471471 name : Package and Publish Helm Chart
472- runs-on : ${{ github.repository_owner == 'nginx' && (inputs.is_production_release || ((github.event_name == 'push' || github.event_name == 'schedule') && github.ref == 'refs/heads/main')) && 'ubuntu-24.04-amd64' || 'ubuntu-24.04' }}
472+ runs-on : ${{ github.repository_owner == 'nginx' && (inputs.is_production_release || ((github.event_name == 'push' || github.event_name == 'schedule') && ( github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/heads/release-')) )) && 'ubuntu-24.04-amd64' || 'ubuntu-24.04' }}
473473 needs : [vars, helm-tests]
474474 if : ${{ (inputs.is_production_release && (inputs.dry_run == false || inputs.dry_run == null)) || (github.event_name == 'push' && ! startsWith(github.ref, 'refs/heads/release-')) }}
475475 permissions :
0 commit comments