54
54
- name : Set image variables
55
55
id : image_details
56
56
run : |
57
- echo "name=gcr.io/f5-gcs-7899-ptg-ingrss-ctlr/dev/nginx-ic${{ contains(inputs.nap-modules, 'dos') && '-dos' || '' }}${{ contains(inputs.nap-modules, 'waf') && '-nap' || '' }}/nginx${{ contains(inputs.image, 'plus') && '-plus' || '' }}-ingress" >> $GITHUB_OUTPUT
57
+ echo "name=gcr.io/f5-gcs-7899-ptg-ingrss-ctlr/dev/nginx-ic${{ contains(inputs.nap-modules, 'dos') && '-dos' || '' }}${{ contains(inputs.nap-modules, 'waf') && '-nap' || '' }}${{ contains(inputs.image, 'v5') && '-v5' || '' }} /nginx${{ contains(inputs.image, 'plus') && '-plus' || '' }}-ingress" >> $GITHUB_OUTPUT
58
58
echo "build_tag=${{ inputs.build-tag }}${{ contains(inputs.image, 'ubi-9') && '-ubi' || '' }}${{ contains(inputs.image, 'ubi-8') && '-ubi8' || '' }}${{ contains(inputs.image, 'alpine') && '-alpine' || '' }}${{ contains(inputs.target, 'aws') && '-mktpl' || '' }}${{ contains(inputs.image, 'fips') && '-fips' || ''}}" >> $GITHUB_OUTPUT
59
59
echo "stable_tag=${{ inputs.stable-tag }}${{ contains(inputs.image, 'ubi-9') && '-ubi' || '' }}${{ contains(inputs.image, 'ubi-8') && '-ubi8' || '' }}${{ contains(inputs.image, 'alpine') && '-alpine' || '' }}${{ contains(inputs.target, 'aws') && '-mktpl' || '' }}${{ contains(inputs.image, 'fips') && '-fips' || ''}}" >> $GITHUB_OUTPUT
60
60
@@ -108,7 +108,7 @@ jobs:
108
108
- name : Check if test image exists
109
109
id : check-image
110
110
run : |
111
- docker manifest inspect "gcr.io/f5-gcs-7899-ptg-ingrss-ctlr/dev/test-runner:${{ hashFiles('./tests/requirements.txt') || 'latest' }}"
111
+ docker manifest inspect "gcr.io/f5-gcs-7899-ptg-ingrss-ctlr/dev/test-runner:${{ hashFiles('./tests/requirements.txt', './tests/Dockerfile' ) || 'latest' }}"
112
112
shell : bash
113
113
continue-on-error : true
114
114
if : ${{ inputs.authenticated }}
@@ -119,7 +119,7 @@ jobs:
119
119
file : tests/Dockerfile
120
120
context : " ."
121
121
cache-from : type=gha,scope=test-runner
122
- tags : " gcr.io/f5-gcs-7899-ptg-ingrss-ctlr/dev/test-runner:${{ hashFiles('./tests/requirements.txt') || 'latest' }}"
122
+ tags : " gcr.io/f5-gcs-7899-ptg-ingrss-ctlr/dev/test-runner:${{ hashFiles('./tests/requirements.txt', './tests/Dockerfile' ) || 'latest' }}"
123
123
pull : true
124
124
push : ${{ inputs.authenticated }}
125
125
load : ${{ !inputs.authenticated }}
@@ -147,6 +147,11 @@ jobs:
147
147
${{ contains(inputs.image, 'ubi') && format('"rhel_license={0}"', secrets.RHEL_LICENSE) || '' }}
148
148
if : ${{ !inputs.authenticated }}
149
149
150
+ - name : Generate WAF v5 tgz from JSON
151
+ run : |
152
+ docker run --rm --user root -v /var/run/docker.sock:/var/run/docker.sock -v ${{ github.workspace }}/tests/data/ap-waf-v5:/data gcr.io/f5-gcs-7899-ptg-ingrss-ctlr/nap/waf-compiler:5.2.0 -p /data/wafv5.json -o /data/wafv5.tgz
153
+ if : ${{ contains(inputs.image, 'nap-v5')}}
154
+
150
155
- name : Run Smoke Tests
151
156
id : smoke-tests
152
157
uses : ./.github/actions/smoke-tests
@@ -158,7 +163,8 @@ jobs:
158
163
label : ${{ inputs.label }}
159
164
k8s-version : ${{ inputs.k8s-version }}
160
165
azure-ad-secret : ${{ secrets.AZURE_AD_AUTOMATION }}
161
- test-image : " gcr.io/f5-gcs-7899-ptg-ingrss-ctlr/dev/test-runner:${{ hashFiles('./tests/requirements.txt') || 'latest' }}"
166
+ registry-token : ${{ steps.auth.outputs.access_token }}
167
+ test-image : " gcr.io/f5-gcs-7899-ptg-ingrss-ctlr/dev/test-runner:${{ hashFiles('./tests/requirements.txt', './tests/Dockerfile') || 'latest' }}"
162
168
if : ${{ steps.stable_exists.outputs.exists != 'true' }}
163
169
164
170
- name : Upload Test Results
0 commit comments