66 image :
77 required : true
88 type : string
9- build-os :
10- required : false
11- type : string
12- default : ' '
139 k8s-version :
1410 required : true
1511 type : string
@@ -65,11 +61,11 @@ jobs:
6561 images : |
6662 name=ghcr.io/nginx/nginx-gateway-fabric
6763 tags : |
68- type=semver,pattern={{version}},suffix=${{ inputs.build-os != '' && format('-{0}', inputs.build-os) || '' }}
69- type=schedule,suffix=${{ inputs.build-os != '' && format('-{0}', inputs.build-os) || '' }}
70- type=edge,suffix=${{ inputs.build-os != '' && format('-{0}', inputs.build-os) || '' }}
71- type=ref,event=pr,suffix=${{ inputs.build-os != '' && format('-{0}', inputs.build-os) || '' }}
72- type=ref,event=branch,suffix=-rc${{ inputs.build-os != '' && format('-{0}', inputs.build-os) || '' }} ,enable=${{ startsWith(github.ref, 'refs/heads/release') }}
64+ type=semver,pattern={{version}}
65+ type=schedule
66+ type=edge
67+ type=ref,event=pr
68+ type=ref,event=branch,suffix=-rc,enable=${{ startsWith(github.ref, 'refs/heads/release') }}
7369
7470 - name : NGINX Docker meta
7571 id : nginx-meta
@@ -78,16 +74,16 @@ jobs:
7874 images : |
7975 name=ghcr.io/nginx/nginx-gateway-fabric/${{ inputs.image == 'plus' && 'nginx-plus' || inputs.image }}
8076 tags : |
81- type=semver,pattern={{version}},suffix=${{ inputs.build-os != '' && format('-{0}', inputs.build-os) || '' }}
82- type=edge,suffix=${{ inputs.build-os != '' && format('-{0}', inputs.build-os) || '' }}
83- type=schedule,suffix=${{ inputs.build-os != '' && format('-{0}', inputs.build-os) || '' }}
84- type=ref,event=pr,suffix=${{ inputs.build-os != '' && format('-{0}', inputs.build-os) || '' }}
85- type=ref,event=branch,suffix=-rc${{ inputs.build-os != '' && format('-{0}', inputs.build-os) || '' }} ,enable=${{ startsWith(github.ref, 'refs/heads/release') }}
77+ type=semver,pattern={{version}}
78+ type=edge
79+ type=schedule
80+ type=ref,event=pr
81+ type=ref,event=branch,suffix=-rc,enable=${{ startsWith(github.ref, 'refs/heads/release') }}
8682
8783 - name : Build binary
8884 uses : goreleaser/goreleaser-action@e435ccd777264be153ace6237001ef4d979d3a7a # v6.4.0
8985 with :
90- version : v2.12.2 # renovate: datasource=github-tags depName=goreleaser/goreleaser
86+ version : v2.12.3 # renovate: datasource=github-tags depName=goreleaser/goreleaser
9187 args : build --single-target --snapshot --clean
9288 env :
9389 TELEMETRY_ENDPOINT : otel-collector-opentelemetry-collector.collector.svc.cluster.local:4317
@@ -107,11 +103,11 @@ jobs:
107103 - name : Build NGINX Docker Image
108104 uses : docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83 # v6.18.0
109105 with :
110- file : build${{ inputs.build-os != '' && format('/{0}', inputs.build-os) || '' }}/ Dockerfile${{ inputs.image == 'nginx' && '.nginx' || '' }}${{ inputs.image == 'plus' && '.nginxplus' || '' }}
106+ file : build/ Dockerfile${{ inputs.image == 'nginx' && '.nginx' || '' }}${{ inputs.image == 'plus' && '.nginxplus' || ''}}
111107 tags : ${{ steps.nginx-meta.outputs.tags }}
112108 context : " ."
113109 load : true
114- cache-from : type=gha,scope=${{ inputs.image }}${{ inputs.build-os != '' && format('-{0}', inputs.build-os) || '' }}
110+ cache-from : type=gha,scope=${{ inputs.image }}
115111 pull : true
116112 build-args : |
117113 NJS_DIR=internal/controller/nginx/modules/src
@@ -157,4 +153,4 @@ jobs:
157153 ngf_prefix=ghcr.io/nginx/nginx-gateway-fabric
158154 ngf_tag=${{ steps.ngf-meta.outputs.version }}
159155 make test${{ inputs.image == 'plus' && '-with-plus' || ''}} PREFIX=${ngf_prefix} TAG=${ngf_tag} GW_SERVICE_TYPE=LoadBalancer CLUSTER_NAME=${{ github.run_id }} CI=true
160- working-directory : ./tests
156+ working-directory : ./tests
0 commit comments