From ad1dd0741e5c6c2ccd8c9b062cab77bd9fca8368 Mon Sep 17 00:00:00 2001 From: messense Date: Mon, 7 Nov 2022 12:14:34 +0800 Subject: [PATCH 1/2] Deploy multi-platform images --- .github/workflows/build.yml | 24 ++++++++++++++++++++++++ deploy_multi_platform.sh | 1 + 2 files changed, 25 insertions(+) create mode 100755 deploy_multi_platform.sh diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 0d807e76..933b8cde 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -73,3 +73,27 @@ jobs: env: QUAY_USERNAME: ${{ secrets.QUAY_USERNAME }} QUAY_PASSWORD: ${{ secrets.QUAY_PASSWORD }} + + publish_multi_platform: + name: Publish Multi-platform Images + # if: github.event_name == 'push' && github.ref == 'refs/heads/main' && github.repository == 'pypa/manylinux' + runs-on: ubuntu-latest + needs: build_manylinux + steps: + - name: Wait for Travis CI + uses: fountainhead/action-wait-for-check@v1.1.0 + id: wait-for-travis + with: + token: ${{ secrets.GITHUB_TOKEN }} + checkName: Travis CI - Branch + ref: ${{ github.event.pull_request.head.sha || github.sha }} + intervalSeconds: 10 + timeoutSeconds: 3600 + + - name: Deploy + if: steps.wait-for-travis.outputs.conclusion == 'success' + run: ./deploy_multi_platform.sh + + - name: Error on failure + if: steps.wait-for-travis.outputs.conclusion != 'success' + run: exit 1 diff --git a/deploy_multi_platform.sh b/deploy_multi_platform.sh new file mode 100755 index 00000000..a9bf588e --- /dev/null +++ b/deploy_multi_platform.sh @@ -0,0 +1 @@ +#!/bin/bash From 9141189a9aeef71302c375d3996aebcdf4791c37 Mon Sep 17 00:00:00 2001 From: messense Date: Mon, 7 Nov 2022 12:20:28 +0800 Subject: [PATCH 2/2] Test Travis CI - Pull Request Revert later --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 933b8cde..d364877e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -85,7 +85,7 @@ jobs: id: wait-for-travis with: token: ${{ secrets.GITHUB_TOKEN }} - checkName: Travis CI - Branch + checkName: Travis CI - Pull Request ref: ${{ github.event.pull_request.head.sha || github.sha }} intervalSeconds: 10 timeoutSeconds: 3600