@@ -109,12 +109,16 @@ jobs:
109
109
env :
110
110
DOCKER_METADATA_ANNOTATIONS_LEVELS : manifest,index
111
111
112
- - name : Check if base images exist
113
- id : base_exists
112
+ - name : Set base name variable
113
+ id : base_name
114
114
run : |
115
115
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' || '' }}"
116
116
echo "image=${base_image}" >> $GITHUB_OUTPUT
117
- if docker pull ${base_image}; then
117
+
118
+ - name : Check if base images exist
119
+ id : base_exists
120
+ run : |
121
+ if docker pull ${{ steps.base_name.outputs.image }}; then
118
122
echo "exists=true" >> $GITHUB_OUTPUT
119
123
fi
120
124
if : ${{ inputs.authenticated && ! inputs.full-build }}
@@ -126,7 +130,7 @@ jobs:
126
130
context : " ."
127
131
cache-to : type=gha,scope=${{ inputs.image }}${{ steps.nap_modules.outputs.name != '' && format('-{0}', steps.nap_modules.outputs.name) || '' }},mode=max
128
132
target : common
129
- tags : ${{ steps.base_exists .outputs.image }}
133
+ tags : ${{ steps.base_name .outputs.image }}
130
134
platforms : ${{ inputs.platforms }}
131
135
pull : true
132
136
push : true
@@ -185,7 +189,7 @@ jobs:
185
189
provenance : false
186
190
build-args : |
187
191
BUILD_OS=${{ inputs.image }}
188
- ${{ inputs.authenticated && format('PREBUILT_BASE_IMG={0}', steps.base_exists .outputs.image ) }}
192
+ ${{ inputs.authenticated && format('PREBUILT_BASE_IMG={0}', steps.base_name .outputs.image ) }}
189
193
IC_VERSION=${{ inputs.ic-version && inputs.ic-version || steps.meta.outputs.version }}
190
194
${{ inputs.nap-modules != '' && format('NAP_MODULES={0}', steps.nap_modules.outputs.name) || '' }}
191
195
${{ (contains(inputs.target, 'aws') && inputs.nap-modules != '') && format('NAP_MODULES_AWS={0}', steps.nap_modules.outputs.modules) || '' }}
0 commit comments