1717 helm-tests-local :
1818 name : Helm Tests Local
1919 runs-on : ubuntu-24.04
20- if : ${{ github.event_name != 'schedule' }}
20+ if : ${{ github.event_name != 'schedule' && (!github.event.pull_request.head.repo.fork || inputs.image != 'plus') }}
2121 steps :
2222 - name : Checkout Repository
2323 uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
3535
3636 - name : NGF Docker meta
3737 id : ngf-meta
38- uses : docker/metadata-action@8e5442c4ef9f78752691e2d8f8d19755c6f78e81 # v5.5 .1
38+ uses : docker/metadata-action@369eb591f429131d6889c46b94e711f089e6ca96 # v5.6 .1
3939 with :
4040 images : |
4141 name=ghcr.io/nginxinc/nginx-gateway-fabric
4848
4949 - name : NGINX Docker meta
5050 id : nginx-meta
51- uses : docker/metadata-action@8e5442c4ef9f78752691e2d8f8d19755c6f78e81 # v5.5 .1
51+ uses : docker/metadata-action@369eb591f429131d6889c46b94e711f089e6ca96 # v5.6 .1
5252 with :
5353 images : |
5454 name=ghcr.io/nginxinc/nginx-gateway-fabric/${{ inputs.image == 'plus' && 'nginx-plus' || inputs.image }}
9898 kind create cluster --name ${{ github.run_id }} --image=kindest/node:${{ inputs.k8s-version }}
9999 kind load docker-image ${{ join(fromJSON(steps.ngf-meta.outputs.json).tags, ' ') }} ${{ join(fromJSON(steps.nginx-meta.outputs.json).tags, ' ') }} --name ${{ github.run_id }}
100100 kubectl kustomize config/crd/gateway-api/standard | kubectl apply -f -
101+ kubectl create namespace nginx-gateway
102+
103+ - name : Create plus secret
104+ if : ${{ inputs.image == 'plus' }}
105+ env :
106+ PLUS_LICENSE : ${{ secrets.JWT_PLUS_REGISTRY }}
107+ run : |
108+ echo "${PLUS_LICENSE}" > license.jwt
109+ kubectl create secret generic nplus-license --from-file license.jwt -n nginx-gateway
101110
102111 - name : Set up Python
103112 uses : actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0
@@ -110,7 +119,7 @@ jobs:
110119
111120 - name : Install Chart
112121 run : |
113- ct install --config .ct.yaml --helm-extra-set-args="--set=nginxGateway.image.tag=${{ steps.ngf-meta.outputs.version }} \
122+ ct install --config .ct.yaml --namespace nginx-gateway -- helm-extra-set-args="--set=nginxGateway.image.tag=${{ steps.ngf-meta.outputs.version }} \
114123 --set=nginx.image.repository=ghcr.io/nginxinc/nginx-gateway-fabric/nginx${{ inputs.image == 'plus' && '-plus' || ''}} \
115124 --set=nginx.plus=${{ inputs.image == 'plus' }} \
116125 --set=nginx.image.tag=${{ steps.nginx-meta.outputs.version }} \
@@ -143,10 +152,14 @@ jobs:
143152 kubectl kustomize config/crd/gateway-api/standard | kubectl apply -f -
144153 kubectl create namespace nginx-gateway
145154
146- - name : Create k8s secret
155+ - name : Create plus secrets
147156 if : ${{ inputs.image == 'plus' }}
157+ env :
158+ PLUS_LICENSE : ${{ secrets.JWT_PLUS_REGISTRY }}
148159 run : |
160+ echo "${PLUS_LICENSE}" > license.jwt
149161 kubectl create secret docker-registry nginx-plus-registry-secret --docker-server=private-registry.nginx.com --docker-username=${{ secrets.JWT_PLUS_REGISTRY }} --docker-password=none -n nginx-gateway
162+ kubectl create secret generic nplus-license --from-file license.jwt -n nginx-gateway
150163
151164 - name : Set up Python
152165 uses : actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0
0 commit comments