@@ -153,10 +153,10 @@ jobs:
153
153
- name : Check if base images exist
154
154
id : base_exists
155
155
run : |
156
- if docker manifest inspect gcr.io/f5-gcs-7899-ptg-ingrss-ctlr/dev/nginx-ic-base/plus:${{ inputs.base-image-md5 }}-${{ inputs.image }}${{ steps.nap_modules.outputs.name != '' && format('-{0}', steps.nap_modules.outputs.name) || '' }}; then
157
- echo "exists=0 " >> $GITHUB_OUTPUT
158
- else
159
- echo "exists=1 " >> $GITHUB_OUTPUT
156
+ base_image=" gcr.io/f5-gcs-7899-ptg-ingrss-ctlr/dev/nginx-ic-base/plus:${{ inputs.base-image-md5 }}-${{ inputs.image }}${{ steps.nap_modules.outputs.name != '' && format('-{0}', steps.nap_modules.outputs.name) || '' }}${{ contains(inputs.image, 'v5') && '-v5' || '' }}"
157
+ echo "image=${base_image} " >> $GITHUB_OUTPUT
158
+ if docker manifest inspect ${base_image}; then
159
+ echo "exists=true " >> $GITHUB_OUTPUT
160
160
fi
161
161
if : ${{ ! inputs.forked-workflow }}
162
162
@@ -168,7 +168,7 @@ jobs:
168
168
cache-from : type=gha,scope=${{ inputs.image }}${{ steps.nap_modules.outputs.name != '' && format('-{0}', steps.nap_modules.outputs.name) || '' }}
169
169
cache-to : type=gha,scope=${{ inputs.image }}${{ steps.nap_modules.outputs.name != '' && format('-{0}', steps.nap_modules.outputs.name) || '' }},mode=max
170
170
target : common
171
- tags : gcr.io/f5-gcs-7899-ptg-ingrss-ctlr/dev/nginx-ic-base/plus: ${{ inputs.base-image-md5 }}-${{ inputs.image }}${{ steps.nap_modules .outputs.name != '' && format('-{0}', steps.nap_modules.outputs.name) || '' }}
171
+ tags : ${{ steps.base_exists .outputs.image }}
172
172
platforms : ${{ inputs.platforms }}
173
173
pull : true
174
174
push : true
@@ -180,7 +180,7 @@ jobs:
180
180
"nginx-repo.crt=${{ inputs.nap_modules != '' && secrets.NGINX_AP_CRT || secrets.NGINX_CRT }}"
181
181
"nginx-repo.key=${{ inputs.nap_modules != '' && secrets.NGINX_AP_KEY || secrets.NGINX_KEY }}"
182
182
${{ inputs.nap_modules != '' && contains(inputs.image, 'ubi') && format('"rhel_license={0}"', secrets.RHEL_LICENSE) || '' }}
183
- if : ${{ ! inputs.forked-workflow && steps.base_exists.outputs.exists != 0 }}
183
+ if : ${{ ! inputs.forked-workflow && steps.base_exists.outputs.exists != 'true' }}
184
184
185
185
- name : Build Plus Docker image
186
186
uses : docker/build-push-action@ca052bb54ab0790a636c9b5f226502c73d547a25 # v5.4.0
@@ -202,7 +202,7 @@ jobs:
202
202
provenance : false
203
203
build-args : |
204
204
BUILD_OS=${{ inputs.image }}
205
- PREBUILT_BASE_IMG=gcr.io/f5-gcs-7899-ptg-ingrss-ctlr/dev/nginx-ic-base/plus: ${{ inputs.base-image-md5 }}-${{ inputs.image }}${{ steps.nap_modules.outputs.name != '' && format('- {0}', steps.nap_modules .outputs.name ) || '' }}
205
+ ${{ ! inputs.forked-workflow && format('PREBUILT_BASE_IMG= {0}', steps.base_exists .outputs.image ) || '' }}
206
206
IC_VERSION=${{ (github.ref_type == 'tag' && vars.OLD_RELEASE_FLOW == 'true') && steps.meta.outputs.version || 'CI' }}
207
207
${{ inputs.nap_modules != '' && format('NAP_MODULES={0}', steps.nap_modules.outputs.modules) || '' }}
208
208
${{ contains(inputs.image, 'v5') && 'WAF_VERSION=v5' || '' }}
0 commit comments