@@ -207,23 +207,59 @@ jobs:
207207 runs-on : ubuntu-latest
208208 strategy :
209209 matrix :
210- arch : ["arm64", "amd64", "s390x", "ppc64le" ]
210+ arch : ["arm64", "amd64"]
211211 env :
212212 repo : ${{github.event.repository.name}}
213213 version : ${{needs.get-product-version.outputs.product-version}}
214214 image_tag : ${{needs.get-product-version.outputs.product-version}}-ubi
215215 steps :
216216 - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
217- - name : Clean dist
217+ # - name: Clean dist
218+ # shell: bash
219+ # run: |
220+ # make clean-dist
221+ - name : Setup scripts directory
218222 shell : bash
219223 run : |
220- make clean-dist
224+ make ci-build-scripts-dir GOARCH="${{ matrix.arch }}"
225+ - name : Docker Build (Action)
226+ uses : hashicorp/actions-docker-build@v2
227+ env :
228+ VERSION : ${{ needs.get-product-version.outputs.product-version }}
229+ GO_VERSION : ${{ needs.build-pre-checks.outputs.go-version }}
230+ with :
231+ version : ${{env.version}}
232+ target : release-ubi
233+ arch : ${{matrix.arch}}
234+ redhat_tag : quay.io/redhat-isv-containers/64b072322e2773c28d30d988:${{env.image_tag}}
235+ tags : |
236+ docker.io/hashicorp/${{env.repo}}:${{env.image_tag}}
237+ public.ecr.aws/hashicorp/${{env.repo}}:${{env.image_tag}}
238+ build-docker-ubi-rh-only :
239+ name : UBI ${{ matrix.arch }} build
240+ needs :
241+ - get-product-version
242+ - build-pre-checks
243+ - build
244+ runs-on : ubuntu-latest
245+ strategy :
246+ matrix :
247+ arch : ["s390x", "ppc64le"]
248+ env :
249+ repo : ${{github.event.repository.name}}
250+ version : ${{needs.get-product-version.outputs.product-version}}
251+ image_tag : ${{needs.get-product-version.outputs.product-version}}-ubi
252+ steps :
253+ - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
254+ # - name: Clean dist
255+ # shell: bash
256+ # run: |
257+ # make clean-dist
221258 - name : Setup scripts directory
222259 shell : bash
223260 run : |
224261 make ci-build-scripts-dir GOARCH="${{ matrix.arch }}"
225262 - name : Docker Build (Action)
226- if : ${{ matrix.arch != 's390x' || matrix.arch != 'ppc64le' }}
227263 uses : hashicorp/actions-docker-build@v2
228264 env :
229265 VERSION : ${{ needs.get-product-version.outputs.product-version }}
@@ -236,8 +272,7 @@ jobs:
236272 tags : |
237273 docker.io/hashicorp/${{env.repo}}:${{env.image_tag}}
238274 public.ecr.aws/hashicorp/${{env.repo}}:${{env.image_tag}}
239- - name : Docker Build (Action) s390x or ppc64le
240- if : ${{ matrix.arch == 's390x' || matrix.arch == 'ppc64le' }}
275+ - name : Docker Build (Action)
241276 uses : hashicorp/actions-docker-build@v2
242277 env :
243278 VERSION : ${{ needs.get-product-version.outputs.product-version }}
@@ -248,8 +283,6 @@ jobs:
248283 arch : ${{matrix.arch}}
249284 redhat_tag : quay.io/redhat-isv-containers/64b072322e2773c28d30d988:${{env.image_tag}}
250285 - name : Check binary version in container ${{ matrix.arch }}
251- # if: ${{ matrix.arch != 's390x' || matrix.arch != 'ppc64le' }}
252- if : ${{ matrix.arch != 's390x' }}
253286 shell : bash
254287 run : |
255288 version_output=$(docker run --platform linux/${{matrix.arch}} hashicorp/${{env.repo}}:${{env.image_tag}} --version --output=json)
0 commit comments