@@ -107,7 +107,7 @@ jobs:
107
107
publish=false
108
108
if ${{ github.event_name == 'workflow_dispatch' && inputs.publish-image }}; then
109
109
publish=true
110
- elif ${{ github.ref_type == 'tag' && startsWith(github.ref, 'refs/heads/release-') }}; then
110
+ elif ${{ ( github.ref_type == 'tag' && vars.OLD_RELEASE_FLOW == 'true') && startsWith(github.ref, 'refs/heads/release-') }}; then
111
111
publish=true
112
112
elif ${{ github.event_name != 'workflow_dispatch' && github.event_name != 'pull_request' && ! startsWith(github.ref, 'refs/heads/release-') }}; then
113
113
publish=true
@@ -181,7 +181,7 @@ jobs:
181
181
with :
182
182
minor-label : " enhancement"
183
183
major-label : " change"
184
- publish : ${{ github.ref_type == 'tag' }}
184
+ publish : ${{ github.ref_type == 'tag' && vars.OLD_RELEASE_FLOW == 'true' }}
185
185
collapse-after : 50
186
186
variables : |
187
187
helm-chart=${{ needs.checks.outputs.chart_version }}
@@ -220,17 +220,17 @@ jobs:
220
220
221
221
- name : Download Syft
222
222
uses : anchore/sbom-action/download-syft@e8d2a6937ecead383dfe75190d104edd1f9c5751 # v0.16.0
223
- if : github.ref_type == 'tag'
223
+ if : ${{ github.ref_type == 'tag' && vars.OLD_RELEASE_FLOW == 'true' }}
224
224
225
225
- name : Install Cosign
226
226
uses : sigstore/cosign-installer@59acb6260d9c0ba8f4a2f9d9b48431a222b68e20 # v3.5.0
227
- if : github.ref_type == 'tag'
227
+ if : ${{ github.ref_type == 'tag' && vars.OLD_RELEASE_FLOW == 'true' }}
228
228
229
229
- name : Build binaries
230
230
uses : goreleaser/goreleaser-action@286f3b13b1b49da4ac219696163fb8c1c93e1200 # v6.0.0
231
231
with :
232
232
version : latest
233
- args : ${{ github.ref_type == 'tag' && 'release' || 'build --snapshot' }} ${{ github.event_name == 'pull_request' && '--single-target' || '' }} --clean
233
+ args : ${{ ( github.ref_type == 'tag' && vars.OLD_RELEASE_FLOW == 'true') && 'release' || 'build --snapshot' }} ${{ github.event_name == 'pull_request' && '--single-target' || '' }} --clean
234
234
env :
235
235
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
236
236
GOPATH : ${{ needs.checks.outputs.go_path }}
@@ -690,7 +690,7 @@ jobs:
690
690
base-image-md5 : ${{ needs.checks.outputs.docker_md5 }}
691
691
release-url : ${{ needs.release-notes.outputs.release-url }}
692
692
publish-image : ${{ needs.checks.outputs.publish_images == 'true' }}
693
- publish-aws-market-place : ${{ github.ref_type == 'tag' && startsWith(github.ref, 'refs/heads/release-') && contains(matrix.target, 'aws') }}
693
+ publish-aws-market-place : ${{ ( github.ref_type == 'tag' && vars.OLD_RELEASE_FLOW == 'true') && startsWith(github.ref, 'refs/heads/release-') && contains(matrix.target, 'aws') }}
694
694
publish-nginx-reqistry : ${{ needs.checks.outputs.publish_images == 'true' && ! contains(matrix.target, 'aws') }}
695
695
forked-workflow : ${{ needs.checks.outputs.forked_workflow == 'true' }}
696
696
permissions :
@@ -765,7 +765,7 @@ jobs:
765
765
nap_modules : ${{ matrix.nap_modules }}
766
766
release-url : ${{ needs.release-notes.outputs.release-url }}
767
767
publish-image : ${{ needs.checks.outputs.publish_images == 'true' }}
768
- publish-aws-market-place : ${{ github.ref_type == 'tag' && startsWith(github.ref, 'refs/heads/release-') && contains(matrix.target, 'aws') }}
768
+ publish-aws-market-place : ${{ ( github.ref_type == 'tag' && vars.OLD_RELEASE_FLOW == 'true') && startsWith(github.ref, 'refs/heads/release-') && contains(matrix.target, 'aws') }}
769
769
publish-nginx-reqistry : ${{ needs.checks.outputs.publish_images == 'true' && ! contains(matrix.target, 'aws') }}
770
770
forked-workflow : ${{ needs.checks.outputs.forked_workflow == 'true' }}
771
771
permissions :
@@ -784,9 +784,9 @@ jobs:
784
784
uses : ./.github/workflows/publish-helm.yml
785
785
with :
786
786
branch : ${{ github.ref_name }}
787
- ic_version : ${{ github.ref_type == 'tag' && needs.checks.outputs.ic_version || 'edge' }}
788
- chart_version : ${{ github.ref_type == 'tag' && needs.checks.outputs.chart_version || '0.0.0-edge' }}
789
- nginx_helm_repo : ${{ github.ref_type == 'tag' }}
787
+ ic_version : ${{ ( github.ref_type == 'tag' && vars.OLD_RELEASE_FLOW == 'true') && needs.checks.outputs.ic_version || 'edge' }}
788
+ chart_version : ${{ ( github.ref_type == 'tag' && vars.OLD_RELEASE_FLOW == 'true') && needs.checks.outputs.chart_version || '0.0.0-edge' }}
789
+ nginx_helm_repo : ${{ github.ref_type == 'tag' && vars.OLD_RELEASE_FLOW == 'true' }}
790
790
secrets : inherit
791
791
792
792
operator :
@@ -808,7 +808,7 @@ jobs:
808
808
chart_version: '${{ needs.checks.outputs.chart_version }}'
809
809
},
810
810
})
811
- if : github.ref_type == 'tag'
811
+ if : ${{ github.ref_type == 'tag' && vars.OLD_RELEASE_FLOW == 'true' }}
812
812
813
813
gcp-marketplace :
814
814
name : Trigger PR for GCP Marketplace
@@ -829,4 +829,4 @@ jobs:
829
829
chart_version: '${{ needs.checks.outputs.chart_version }}'
830
830
},
831
831
})
832
- if : github.ref_type == 'tag'
832
+ if : ${{ github.ref_type == 'tag' && vars.OLD_RELEASE_FLOW == 'true' }}
0 commit comments