66 image :
77 required : true
88 type : string
9+ build_os :
10+ required : false
11+ type : string
12+ default : ' '
913 k8s-version :
1014 required : true
1115 type : string
@@ -75,12 +79,12 @@ jobs:
7579 images : |
7680 name=ghcr.io/nginx/nginx-gateway-fabric
7781 tags : |
78- type=semver,pattern={{version}}
79- type=edge
80- type=schedule
81- type=ref,event=pr
82- type=ref,event=branch,suffix=-rc, enable=${{ startsWith(github.ref, 'refs/heads/release') && ! inputs.production-release }}
83- type=raw,value={{ inputs.release_version }},enable=${{ inputs.production-release && inputs.release_version != '' }}
82+ type=semver,pattern={{version}},suffix=${{ inputs.build_os != '' && format('-{0}', inputs.build_os) || '' }}
83+ type=edge,suffix=${{ inputs.build_os != '' && format('-{0}', inputs.build_os) || '' }}
84+ type=schedule,suffix=${{ inputs.build_os != '' && format('-{0}', inputs.build_os) || '' }}
85+ type=ref,event=pr,suffix=${{ inputs.build_os != '' && format('-{0}', inputs.build_os) || '' }}
86+ type=ref,event=branch,suffix=-rc${{ inputs.build_os != '' && format('-{0}', inputs.build_os) || '' }}, enable=${{ startsWith(github.ref, 'refs/heads/release') && inputs.tag == '' }}
87+ type=raw,value=${{ inputs.tag }},enable=${{ inputs.tag != '' }},suffix=${{ inputs.build_os != '' && format('-{0}', inputs.build_os) || '' }}
8488
8589 - name : NGINX Docker meta
8690 id : nginx-meta
@@ -89,12 +93,12 @@ jobs:
8993 images : |
9094 name=ghcr.io/nginx/nginx-gateway-fabric/${{ inputs.image == 'plus' && 'nginx-plus' || inputs.image }}
9195 tags : |
92- type=semver,pattern={{version}}
93- type=edge
94- type=schedule
95- type=ref,event=pr
96- type=ref,event=branch,suffix=-rc, enable=${{ startsWith(github.ref, 'refs/heads/release') && ! inputs.production-release }}
97- type=raw,value={{ inputs.release_version }},enable=${{ inputs.production-release && inputs.release_version != '' }}
96+ type=semver,pattern={{version}},suffix=${{ inputs.build_os != '' && format('-{0}', inputs.build_os) || '' }}
97+ type=edge,suffix=${{ inputs.build_os != '' && format('-{0}', inputs.build_os) || '' }}
98+ type=schedule,suffix=${{ inputs.build_os != '' && format('-{0}', inputs.build_os) || '' }}
99+ type=ref,event=pr,suffix=${{ inputs.build_os != '' && format('-{0}', inputs.build_os) || '' }}
100+ type=ref,event=branch,suffix=-rc${{ inputs.build_os != '' && format('-{0}', inputs.build_os) || '' }}, enable=${{ startsWith(github.ref, 'refs/heads/release') && inputs.tag == '' }}
101+ type=raw,value=${{ inputs.tag }},enable=${{ inputs.tag != '' }},suffix=${{ inputs.build_os != '' && format('-{0}', inputs.build_os) || '' }}
98102
99103 - name : Build binary
100104 uses : goreleaser/goreleaser-action@e435ccd777264be153ace6237001ef4d979d3a7a # v6.4.0
0 commit comments