4
4
workflow_dispatch :
5
5
inputs :
6
6
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
8
8
required : true
9
9
default : all
10
10
type : choice
47
47
- name : Checkout Repository
48
48
uses : actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
49
49
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@4fd812986e6c8c2a69e18311145f9371337f27d4 # v3.4.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
-
72
50
- name : Authenticate to Google Cloud
73
51
id : auth
74
52
uses : google-github-actions/auth@71fee32a0bb7e97b4d33d548e7d957010649d8fa # v2.1.3
@@ -83,37 +61,14 @@ jobs:
83
61
project_id : ${{ secrets.GCP_PROJECT_ID }}
84
62
install_components : kubectl
85
63
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@1a162644f9a7e87d8f4b053101d1d9a712edc18c # v6.3.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
-
109
64
- name : Setup dotenv file
110
65
working-directory : ./tests/scripts
111
66
run : |
112
67
echo "RESOURCE_NAME=nfr-tests-${{ github.run_id }}" >> vars.env
113
68
echo "TAG=${{ inputs.image_tag }}" >> vars.env
114
69
echo "PREFIX=ghcr.io/nginxinc/nginx-gateway-fabric" >> vars.env
115
70
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
117
72
echo "GKE_CLUSTER_NAME=nfr-tests-${{ github.run_id }}" >> vars.env
118
73
echo "GKE_CLUSTER_ZONE=us-east1-b" >> vars.env
119
74
echo "GKE_CLUSTER_REGION=us-east1" >> vars.env
0 commit comments