@@ -122,7 +122,7 @@ jobs:
122122 runs-on : ubuntu-latest
123123 strategy :
124124 matrix :
125- arch : ["arm64", "amd64", "s390x"]
125+ arch : ["arm64", "amd64", "s390x", "ppc64le" ]
126126 fail-fast : true
127127 steps :
128128 - name : Checkout
@@ -207,7 +207,7 @@ jobs:
207207 runs-on : ubuntu-latest
208208 strategy :
209209 matrix :
210- arch : ["arm64", "amd64", "s390x" ]
210+ arch : ["arm64", "amd64"]
211211 env :
212212 repo : ${{github.event.repository.name}}
213213 version : ${{needs.get-product-version.outputs.product-version}}
@@ -219,7 +219,6 @@ jobs:
219219 run : |
220220 make ci-build-scripts-dir GOARCH="${{ matrix.arch }}"
221221 - name : Docker Build (Action)
222- if : ${{ matrix.arch != 's390x' }}
223222 uses : hashicorp/actions-docker-build@v2
224223 env :
225224 VERSION : ${{ needs.get-product-version.outputs.product-version }}
@@ -233,21 +232,7 @@ jobs:
233232 docker.io/hashicorp/${{env.repo}}:${{env.image_tag}}
234233 public.ecr.aws/hashicorp/${{env.repo}}:${{env.image_tag}}
235234 icr.io/cpopen/ibm-vault/${{env.repo}}:${{env.image_tag}}
236- - name : Docker Build (Action) s390x
237- if : ${{ matrix.arch == 's390x' }}
238- uses : hashicorp/actions-docker-build@v2
239- env :
240- VERSION : ${{ needs.get-product-version.outputs.product-version }}
241- GO_VERSION : ${{ needs.build-pre-checks.outputs.go-version }}
242- with :
243- version : ${{env.version}}
244- target : release-ubi
245- arch : ${{matrix.arch}}
246- redhat_tag : quay.io/redhat-isv-containers/64b072322e2773c28d30d988:${{env.image_tag}}
247- tags : |
248- icr.io/cpopen/ibm-vault/${{env.repo}}:${{env.image_tag}}
249235 - name : Check binary version in container ${{ matrix.arch }}
250- if : ${{ matrix.arch != 's390x' }}
251236 shell : bash
252237 run : |
253238 version_output=$(docker run --platform linux/${{matrix.arch}} hashicorp/${{env.repo}}:${{env.image_tag}} --version --output=json)
@@ -259,6 +244,39 @@ jobs:
259244 exit 1
260245 fi
261246
247+ build-docker-ubi-ibm :
248+ name : UBI IBM ${{ matrix.arch }} build
249+ needs :
250+ - get-product-version
251+ - build-pre-checks
252+ - build
253+ runs-on : ubuntu-latest
254+ strategy :
255+ matrix :
256+ arch : ["s390x", "ppc64le"]
257+ env :
258+ repo : ${{github.event.repository.name}}
259+ version : ${{needs.get-product-version.outputs.product-version}}
260+ image_tag : ${{needs.get-product-version.outputs.product-version}}-ubi
261+ steps :
262+ - uses : actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
263+ - name : Setup scripts directory
264+ shell : bash
265+ run : |
266+ make ci-build-scripts-dir GOARCH="${{ matrix.arch }}"
267+ - name : Docker Build (Action)
268+ uses : hashicorp/actions-docker-build@v2
269+ env :
270+ VERSION : ${{ needs.get-product-version.outputs.product-version }}
271+ GO_VERSION : ${{ needs.build-pre-checks.outputs.go-version }}
272+ with :
273+ version : ${{env.version}}
274+ target : release-ubi
275+ arch : ${{matrix.arch}}
276+ redhat_tag : quay.io/redhat-isv-containers/64b072322e2773c28d30d988:${{env.image_tag}}
277+ tags : |
278+ icr.io/cpopen/ibm-vault/${{env.repo}}:${{env.image_tag}}
279+
262280 chart-upgrade-tests :
263281 runs-on : ubuntu-latest
264282 needs :
@@ -452,6 +470,7 @@ jobs:
452470 - build
453471 - build-docker
454472 - build-docker-ubi
473+ - build-docker-ubi-ibm
455474 - chart-upgrade-tests
456475 - unit-tests
457476 - latest-vault
0 commit comments