File tree Expand file tree Collapse file tree 1 file changed +17
-3
lines changed
Expand file tree Collapse file tree 1 file changed +17
-3
lines changed Original file line number Diff line number Diff line change @@ -136,15 +136,29 @@ jobs:
136136 images : ${{ inputs.registry }}/worker
137137 tags : type=raw,value=${{ inputs.image_tag }}${{ inputs.is_fips == 'true' && '-fips' || '' }}
138138
139- - name : Build and ${{ inputs.is_publish_to_registry == 'true' && ' push' || ' export as tar' }} ${{ inputs.is_fips == 'true' && ' FIPS' || '' }}
139+ - name : Build and push ${{ inputs.is_fips == 'true' && 'FIPS' || '' }}
140140 uses : docker/build-push-action@v6
141+ if : inputs.is_publish_to_registry == 'true'
141142 with :
142143 context : opencti-worker
143144 file : opencti-worker/Dockerfile
144145 build-args : |
145146 "BASE_TYPE=${{ inputs.is_fips == 'true' && 'fips' || 'alpine' }}"
146- push : ${{ inputs.is_publish_to_registry == 'true' }}
147- outputs : ${{ inputs.is_publish_to_registry == 'false' && 'type=docker,dest=/tmp/opencti-worker.tar' }}
147+ push : true
148+ tags : ${{ steps.meta.outputs.tags }}
149+ labels : ${{ steps.meta.outputs.labels }}
150+
151+
152+ - name : Build and export as tar ${{ inputs.is_fips == 'true' && ' FIPS' || '' }}
153+ uses : docker/build-push-action@v6
154+ if : inputs.is_publish_to_registry == 'false'
155+ with :
156+ context : opencti-worker
157+ file : opencti-worker/Dockerfile
158+ build-args : |
159+ "BASE_TYPE=${{ inputs.is_fips == 'true' && 'fips' || 'alpine' }}"
160+ push : false
161+ outputs : ' type=docker,dest=/tmp/opencti-worker.tar'
148162 tags : ${{ steps.meta.outputs.tags }}
149163 labels : ${{ steps.meta.outputs.labels }}
150164
You can’t perform that action at this time.
0 commit comments