From ef2ee171fe48c23588afec6e0c369e30f692c84f Mon Sep 17 00:00:00 2001 From: sivaramsingana <47631665+sivaramsingana@users.noreply.github.com> Date: Fri, 30 Aug 2024 18:57:38 +0530 Subject: [PATCH] reverting back the support for s390x which has been removed temporarily(https://github.com/quay/quay/pull/3157) --- .github/workflows/build-and-publish.yaml | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build-and-publish.yaml b/.github/workflows/build-and-publish.yaml index bb0c37fc19..34445d6c24 100644 --- a/.github/workflows/build-and-publish.yaml +++ b/.github/workflows/build-and-publish.yaml @@ -39,6 +39,8 @@ jobs: BUILDER_PPC64LE_SSH_CONFIG: ${{ secrets.BUILDER_PPC64LE_SSH_CONFIG }} BUILDER_PPC64LE_SSH_KEY: ${{ secrets.BUILDER_PPC64LE_SSH_KEY }} BUILDER_PPC64LE_SSH_KNOWN_HOSTS: ${{ secrets.BUILDER_PPC64LE_SSH_KNOWN_HOSTS }} + BUILDER_S390X_SSH_HOST: ${{ secrets.BUILDER_S390X_SSH_HOST }} + BUILDER_S390X_SSH_KEY: ${{ secrets.BUILDER_S390X_SSH_KEY }} run: | mkdir ~/.ssh chmod 700 ~/.ssh @@ -50,6 +52,10 @@ jobs: touch ~/.ssh/id_builder_ppc64le chmod 600 ~/.ssh/id_builder_ppc64le echo "$BUILDER_PPC64LE_SSH_KEY" >~/.ssh/id_builder_ppc64le + + touch ~/.ssh/id_builder_s390x + chmod 600 ~/.ssh/id_builder_s390x + echo "$BUILDER_S390X_SSH_KEY" > ~/.ssh/id_builder_s390x touch ~/.ssh/known_hosts chmod 600 ~/.ssh/known_hosts @@ -69,7 +75,13 @@ jobs: IdentityFile "~/.ssh/id_builder_ppc64le" $BUILDER_PPC64LE_SSH_CONFIG - + Host builder-s390x + StrictHostKeyChecking no + HostName $BUILDER_S390X_SSH_HOST + User wfuser + IdentityFile "~/.ssh/id_builder_s390x" + END + - name: Set up Docker Buildx uses: docker/setup-buildx-action@v2 with: @@ -79,7 +91,8 @@ jobs: platforms: linux/arm64 - endpoint: ssh://builder-ppc64le platforms: linux/ppc64le - + - endpoint: ssh://builder-s390x + platforms: linux/s390x - name: Login to Quay.io uses: docker/login-action@v1 with: @@ -93,7 +106,6 @@ jobs: env: TAG: ${{ steps.version-from-branch.outputs.version }}${{ env.TAG_SUFFIX }} with: - platforms: linux/amd64,linux/arm64,linux/ppc64le + platforms: linux/amd64,linux/arm64,linux/ppc64le,linux/s390x push: true tags: ${{ env.REGISTRY }}/${{ env.REPO_NAME }}:${{ github.event.inputs.tag || env.TAG }} -