From c41383e464577bebbf4aed23c9174808335af133 Mon Sep 17 00:00:00 2001 From: ShubhamPalriwala Date: Tue, 9 Jan 2024 13:08:12 +0530 Subject: [PATCH 1/4] feat: optimise qemu --- .github/workflows/release-docker-github.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release-docker-github.yml b/.github/workflows/release-docker-github.yml index 0dddc0fd415..0ea82356af9 100644 --- a/.github/workflows/release-docker-github.yml +++ b/.github/workflows/release-docker-github.yml @@ -56,6 +56,8 @@ jobs: # https://github.com/docker/setup-qemu-action - name: Set up QEMU uses: docker/setup-qemu-action@v3 + with: + platforms: all # Set up BuildKit Docker container builder to be able to build # multi-platform images and export cache @@ -89,7 +91,7 @@ jobs: with: context: . file: ./apps/web/Dockerfile - # platforms: linux/amd64,linux/arm64 + platforms: linux/amd64,linux/arm64 push: ${{ github.event_name != 'pull_request' }} tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} From cb8b86154c9c896e944cd57ffa03d016b16b4b47 Mon Sep 17 00:00:00 2001 From: ShubhamPalriwala Date: Tue, 9 Jan 2024 14:00:14 +0530 Subject: [PATCH 2/4] feat: try optimise qemu --- .github/workflows/release-docker-github.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release-docker-github.yml b/.github/workflows/release-docker-github.yml index 0ea82356af9..d4877cf521a 100644 --- a/.github/workflows/release-docker-github.yml +++ b/.github/workflows/release-docker-github.yml @@ -57,7 +57,7 @@ jobs: - name: Set up QEMU uses: docker/setup-qemu-action@v3 with: - platforms: all + platforms: 'arm,arm64' # Set up BuildKit Docker container builder to be able to build # multi-platform images and export cache @@ -91,7 +91,7 @@ jobs: with: context: . file: ./apps/web/Dockerfile - platforms: linux/amd64,linux/arm64 + # platforms: linux/amd64,linux/arm64 push: ${{ github.event_name != 'pull_request' }} tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} From 4f450e81b246d282151a04b7a0e4b7c67080e00e Mon Sep 17 00:00:00 2001 From: ShubhamPalriwala Date: Tue, 9 Jan 2024 14:33:58 +0530 Subject: [PATCH 3/4] feat: another try optimise qemu --- .github/workflows/release-docker-github.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release-docker-github.yml b/.github/workflows/release-docker-github.yml index d4877cf521a..7fef247452e 100644 --- a/.github/workflows/release-docker-github.yml +++ b/.github/workflows/release-docker-github.yml @@ -57,7 +57,7 @@ jobs: - name: Set up QEMU uses: docker/setup-qemu-action@v3 with: - platforms: 'arm,arm64' + platforms: 'arm64' # Set up BuildKit Docker container builder to be able to build # multi-platform images and export cache @@ -91,7 +91,7 @@ jobs: with: context: . file: ./apps/web/Dockerfile - # platforms: linux/amd64,linux/arm64 + platforms: linux/amd64,linux/arm64 push: ${{ github.event_name != 'pull_request' }} tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} From 774ecc8694e7002a6ce0c101db6087411efb5532 Mon Sep 17 00:00:00 2001 From: ShubhamPalriwala Date: Tue, 16 Jan 2024 19:54:49 +0530 Subject: [PATCH 4/4] feat: integrate depot --- .github/workflows/release-docker-github.yml | 20 ++++++-------------- 1 file changed, 6 insertions(+), 14 deletions(-) diff --git a/.github/workflows/release-docker-github.yml b/.github/workflows/release-docker-github.yml index 7fef247452e..f223083f548 100644 --- a/.github/workflows/release-docker-github.yml +++ b/.github/workflows/release-docker-github.yml @@ -44,6 +44,9 @@ jobs: - name: Checkout repository uses: actions/checkout@v3 + - name: Set up Depot CLI + uses: depot/setup-action@v1 + # Install the cosign tool except on PR # https://github.com/sigstore/cosign-installer - name: Install cosign @@ -52,19 +55,6 @@ jobs: with: cosign-release: "v2.1.1" - # Add support for more platforms with QEMU (optional) - # https://github.com/docker/setup-qemu-action - - name: Set up QEMU - uses: docker/setup-qemu-action@v3 - with: - platforms: 'arm64' - - # Set up BuildKit Docker container builder to be able to build - # multi-platform images and export cache - # https://github.com/docker/setup-buildx-action - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v3 # v3.0.0 - # Login against a Docker registry except on PR # https://github.com/docker/login-action - name: Log into registry ${{ env.REGISTRY }} @@ -87,8 +77,10 @@ jobs: # https://github.com/docker/build-push-action - name: Build and push Docker image id: build-and-push - uses: docker/build-push-action@v5 # v5.0.0 + uses: depot/build-push-action@v1 with: + project: tw0fqmsx3c + token: ${{ secrets.DEPOT_PROJECT_TOKEN }} context: . file: ./apps/web/Dockerfile platforms: linux/amd64,linux/arm64