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.production-release }}
87+ type=raw,value={{ inputs.release_version }},enable=${{ inputs.production-release && inputs.release_version != '' }},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.production-release }}
101+ type=raw,value={{ inputs.release_version }},enable=${{ inputs.production-release && inputs.release_version != '' }},suffix=${{ inputs.build-os != '' && format('-{0}', inputs.build-os) || '' }}
98102
99103 - name : Build binary
100104 uses : goreleaser/goreleaser-action@e435ccd777264be153ace6237001ef4d979d3a7a # v6.4.0
@@ -119,11 +123,11 @@ jobs:
119123 - name : Build NGINX Docker Image
120124 uses : docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83 # v6.18.0
121125 with :
122- file : build/ Dockerfile${{ inputs.image == 'nginx' && '.nginx' || '' }}${{ inputs.image == 'plus' && '.nginxplus' || ''}}
126+ file : build${{ inputs.build-os != '' && format('/{0}', inputs.build-os) || '' }}/ Dockerfile${{ inputs.image == 'nginx' && '.nginx' || '' }}${{ inputs.image == 'plus' && '.nginxplus' || '' }}
123127 tags : ${{ steps.nginx-meta.outputs.tags }}
124128 context : " ."
125129 load : true
126- cache-from : type=gha,scope=${{ inputs.image }}
130+ cache-from : type=gha,scope=${{ inputs.image }}${{ inputs.build-os != '' && format('-{0}', inputs.build-os) || '' }}
127131 pull : true
128132 build-args : |
129133 NJS_DIR=internal/controller/nginx/modules/src
@@ -178,7 +182,7 @@ jobs:
178182 if : ${{ inputs.enable-experimental }}
179183 uses : actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
180184 with :
181- name : conformance-profile-${{ inputs.image }}-${{ inputs.k8s-version }}
185+ name : conformance-profile-${{ inputs.image }}-${{ inputs.k8s-version }}-${{ steps.ngf-meta.outputs.version }}
182186 path : ./tests/conformance-profile.yaml
183187
184188 - name : Upload profile to release
0 commit comments