From e8cc450693c9792ad2e91bae45a9ceac47a586f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=82=B3=E3=83=9E=E3=83=AA=E3=83=B3=E8=A6=AA=E8=A1=9B?= =?UTF-8?q?=E9=9A=8A?= Date: Tue, 1 Oct 2024 01:44:53 +0900 Subject: [PATCH 1/3] Update CI.yml --- .github/workflows/CI.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index ec1bf23..aea7117 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -130,3 +130,36 @@ jobs: with: command: upload args: --non-interactive --skip-existing wheels-*/* + + push-docker: + runs-on: ubuntu-latest + permissions: + contents: read + packages: write + strategy: + matrix: + tag: [cpu, cuda] + platform: + - linux/amd64 + - linux/arm64 + steps: + - uses: actions/checkout@v4 + - name: Set up QEMU + uses: docker/setup-qemu-action@v3 + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + - name: Login to GitHub Container Registry + uses: docker/login-action@v3 + with: + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + - name: Build and push image + uses: docker/build-push-action@v6 + with: + context: . + push: true + tags: | + ghcr.io/${{ github.repository }}:${{ matrix.tag }} + file: docker/${{ matrix.tag }}.Dockerfile + platforms: ${{ matrix.platform }} From f76f5e6d1c58815ea6586bca8475dc7067c3a6ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=82=B3=E3=83=9E=E3=83=AA=E3=83=B3=E8=A6=AA=E8=A1=9B?= =?UTF-8?q?=E9=9A=8A?= Date: Tue, 1 Oct 2024 01:45:16 +0900 Subject: [PATCH 2/3] Delete .github/workflows/build.yml --- .github/workflows/build.yml | 40 ------------------------------------- 1 file changed, 40 deletions(-) delete mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml deleted file mode 100644 index 1039c34..0000000 --- a/.github/workflows/build.yml +++ /dev/null @@ -1,40 +0,0 @@ -name: Push to github container register - -on: - release: - types: [created] - workflow_dispatch: - -jobs: - push-docker: - runs-on: ubuntu-latest - permissions: - contents: read - packages: write - strategy: - matrix: - tag: [cpu, cuda] - platform: - - linux/amd64 - - linux/arm64 - steps: - - uses: actions/checkout@v4 - - name: Set up QEMU - uses: docker/setup-qemu-action@v3 - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v3 - - name: Login to GitHub Container Registry - uses: docker/login-action@v3 - with: - registry: ghcr.io - username: ${{ github.actor }} - password: ${{ secrets.GITHUB_TOKEN }} - - name: Build and push image - uses: docker/build-push-action@v6 - with: - context: . - push: true - tags: | - ghcr.io/${{ github.repository }}:${{ matrix.tag }} - file: docker/${{ matrix.tag }}.Dockerfile - platforms: ${{ matrix.platform }} \ No newline at end of file From 0e9c7b652296dec01f463287852e3f9f89755b9a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=82=B3=E3=83=9E=E3=83=AA=E3=83=B3=E8=A6=AA=E8=A1=9B?= =?UTF-8?q?=E9=9A=8A?= Date: Tue, 1 Oct 2024 01:52:09 +0900 Subject: [PATCH 3/3] =?UTF-8?q?=E3=83=97=E3=83=AB=E3=83=AA=E3=82=AF?= =?UTF-8?q?=E3=81=AA=E3=81=A9=E3=81=8C=E4=BD=9C=E6=88=90=E3=81=95=E3=82=8C?= =?UTF-8?q?=E3=81=9F=E6=99=82=E3=81=AB=E5=8B=95=E3=81=8B=E3=81=AA=E3=81=84?= =?UTF-8?q?=E3=82=88=E3=81=86=E3=81=AB=E3=81=97=E3=81=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/CI.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index aea7117..3b3f5d1 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -133,6 +133,7 @@ jobs: push-docker: runs-on: ubuntu-latest + if: "startsWith(github.ref, 'refs/tags/')" permissions: contents: read packages: write