44 workflow_dispatch :
55 inputs :
66 test_label :
7- description : NFR test to run. Choose between performance, upgrade, or all
7+ description : NFR test to run. Choose between performance, upgrade, scale, or all
88 required : true
99 default : all
1010 type : choice
4747 - name : Checkout Repository
4848 uses : actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
4949
50- - name : Setup Golang Environment
51- uses : actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v5.0.1
52- with :
53- go-version : stable
54-
55- - name : Set GOPATH
56- run : echo "GOPATH=$(go env GOPATH)" >> $GITHUB_ENV
57-
58- - name : Docker Buildx
59- if : ${{ inputs.nginx_plus == true }}
60- uses : docker/setup-buildx-action@d70bba72b1f3fd22344832f00baa16ece964efeb # v3.3.0
61-
62- - name : NGINX Docker meta
63- id : nginx-meta
64- if : ${{ inputs.nginx_plus == true }}
65- uses : docker/metadata-action@8e5442c4ef9f78752691e2d8f8d19755c6f78e81 # v5.5.1
66- with :
67- images : |
68- name=gcr.io/${{ secrets.GCP_PROJECT_ID }}/ngf-nfr/nginx-gateway-fabric/nginx-plus
69- tags : |
70- type=raw,value=${{ inputs.image_tag }}
71-
7250 - name : Authenticate to Google Cloud
7351 id : auth
7452 uses : google-github-actions/auth@71fee32a0bb7e97b4d33d548e7d957010649d8fa # v2.1.3
@@ -83,37 +61,14 @@ jobs:
8361 project_id : ${{ secrets.GCP_PROJECT_ID }}
8462 install_components : kubectl
8563
86- - name : Login to GCR
87- if : ${{ inputs.nginx_plus == true }}
88- run : gcloud auth configure-docker gcr.io -q
89-
90- - name : Build NGINX Plus Docker Image
91- if : ${{ inputs.nginx_plus == true }}
92- uses : docker/build-push-action@15560696de535e4014efeff63c48f16952e52dd1 # v6.2.0
93- with :
94- file : build/Dockerfile.nginxplus
95- tags : ${{ steps.nginx-meta.outputs.tags }}
96- context : " ."
97- platforms : linux/amd64
98- provenance : false
99- pull : true
100- push : true
101- build-args : |
102- NJS_DIR=internal/mode/static/nginx/modules/src
103- NGINX_CONF_DIR=internal/mode/static/nginx/conf
104- BUILD_AGENT=gha
105- secrets : |
106- ${{ format('"nginx-repo.crt={0}"', secrets.NGINX_CRT) }}
107- ${{ format('"nginx-repo.key={0}"', secrets.NGINX_KEY) }}
108-
10964 - name : Setup dotenv file
11065 working-directory : ./tests/scripts
11166 run : |
11267 echo "RESOURCE_NAME=nfr-tests-${{ github.run_id }}" >> vars.env
11368 echo "TAG=${{ inputs.image_tag }}" >> vars.env
11469 echo "PREFIX=ghcr.io/nginxinc/nginx-gateway-fabric" >> vars.env
11570 echo "NGINX_PREFIX=ghcr.io/nginxinc/nginx-gateway-fabric/nginx" >> vars.env
116- echo "NGINX_PLUS_PREFIX=gcr.io /${{ secrets.GCP_PROJECT_ID }}/ngf-nfr /nginx-gateway-fabric/nginx-plus" >> vars.env
71+ echo "NGINX_PLUS_PREFIX=us-docker.pkg.dev /${{ secrets.GCP_PROJECT_ID }}/nginx-gateway-fabric/nginx-plus" >> vars.env
11772 echo "GKE_CLUSTER_NAME=nfr-tests-${{ github.run_id }}" >> vars.env
11873 echo "GKE_CLUSTER_ZONE=us-east1-b" >> vars.env
11974 echo "GKE_CLUSTER_REGION=us-east1" >> vars.env
0 commit comments