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.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" ]]; 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.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')) && '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.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" ]]; then
191191 echo "Production mode - using production Artifactory"
192192 GOPROXY_VALUE="https://${{ secrets.ARTIFACTORY_USER }}:${{ secrets.ARTIFACTORY_TOKEN }}@${{ secrets.ARTIFACTORY_ENDPOINT }}"
193193 else
@@ -288,16 +288,8 @@ jobs:
288288 - name : Configure GOPROXY
289289 id : goproxy
290290 run : |
291- if [[ "${{ secrets.ARTIFACTORY_USER }}" == "" ]]; then
292- echo "No Artifactory secrets available - using direct GOPROXY"
293- GOPROXY_VALUE="direct"
294- elif [[ "${{ inputs.is_production_release }}" == "true" ]] || [[ "${{ github.event_name }}" == "push" && "${{ github.ref }}" == "refs/heads/main" ]]; then
295291 echo "Production mode - using production Artifactory"
296292 GOPROXY_VALUE="https://${{ secrets.ARTIFACTORY_USER }}:${{ secrets.ARTIFACTORY_TOKEN }}@${{ secrets.ARTIFACTORY_ENDPOINT }}"
297- else
298- echo "Development mode - using dev Artifactory"
299- GOPROXY_VALUE="https://${{ secrets.ARTIFACTORY_USER }}:${{ secrets.ARTIFACTORY_TOKEN }}@${{ secrets.ARTIFACTORY_DEV_ENDPOINT }}"
300- fi
301293 echo "GOPROXY=${GOPROXY_VALUE}" >> $GITHUB_ENV
302294
303295 - name : Setup Golang Environment
@@ -359,8 +351,8 @@ jobs:
359351 platforms : ${{ matrix.platforms }}
360352 build-os : ${{ matrix.build-os }}
361353 tag : ${{ inputs.release_version || '' }}
362- dry_run : ${{ inputs.dry_run || false }}
363- runner : ${{ github.repository_owner == 'nginx' && (inputs.is_production_release || (github.event_name == 'push' && github.ref == 'refs/heads/main')) && 'ubuntu-24.04-amd64' || 'ubuntu-24.04' }}
354+ 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' }}
364356 permissions :
365357 contents : read # for docker/build-push-action to read repo content
366358 security-events : write # for github/codeql-action/upload-sarif to upload SARIF results
@@ -382,7 +374,7 @@ jobs:
382374 build-os : ${{ matrix.build-os }}
383375 tag : ${{ inputs.release_version || '' }}
384376 dry_run : ${{ inputs.dry_run || false }}
385- runner : ${{ github.repository_owner == 'nginx' && (inputs.is_production_release || (github.event_name == 'push' && 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')) && 'ubuntu-24.04-amd64' || 'ubuntu-24.04' }}
386378 permissions :
387379 contents : read # for docker/build-push-action to read repo content
388380 security-events : write # for github/codeql-action/upload-sarif to upload SARIF results
@@ -399,7 +391,7 @@ jobs:
399391 platforms : " linux/arm64, linux/amd64"
400392 tag : ${{ inputs.operator_version || '' }}
401393 dry_run : ${{ inputs.dry_run || false }}
402- runner : ${{ github.repository_owner == 'nginx' && (inputs.is_production_release || (github.event_name == 'push' && 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')) && 'ubuntu-24.04-amd64' || 'ubuntu-24.04' }}
403395 permissions :
404396 contents : read # for docker/build-push-action to read repo content
405397 security-events : write # for github/codeql-action/upload-sarif to upload SARIF results
@@ -497,7 +489,7 @@ jobs:
497489
498490 publish-helm :
499491 name : Package and Publish Helm Chart
500- runs-on : ${{ github.repository_owner == 'nginx' && (inputs.is_production_release || (github.event_name == 'push' && github.ref == 'refs/heads/main')) && 'ubuntu-24.04-amd64' || 'ubuntu-24.04' }}
492+ 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' }}
501493 needs : [vars, helm-tests]
502494 if : ${{ (inputs.is_production_release && (inputs.dry_run == false || inputs.dry_run == null)) || (github.event_name == 'push' && ! startsWith(github.ref, 'refs/heads/release-')) }}
503495 permissions :
0 commit comments