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 }} -