From 35b2405921ebd1a539382bcb395e8fb4f887daa1 Mon Sep 17 00:00:00 2001 From: Lucas Smith Date: Thu, 7 Mar 2024 10:02:33 +0000 Subject: [PATCH] chore: use warpbuild for docker publishing --- .github/workflows/publish.yml | 28 ++++++++++++---------------- 1 file changed, 12 insertions(+), 16 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index f1bc73c36..862f248fe 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -6,27 +6,19 @@ on: jobs: build: - runs-on: ubuntu-latest + runs-on: ${{ matrix.os }} strategy: fail-fast: false matrix: - platform: - - linux/amd64 - - linux/arm/v6 - - linux/arm/v7 - - linux/arm64 + os: + - warp-ubuntu-latest-x64-4x + - warp-ubuntu-latest-arm64-4x steps: - uses: actions/checkout@v4 with: fetch-tags: true - - name: Set up QEMU - uses: docker/setup-qemu-action@v3 - - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v3 - - name: Login to DockerHub uses: docker/login-action@v3 with: @@ -40,7 +32,11 @@ jobs: username: ${{ github.repository_owner }} password: ${{ secrets.GH_TOKEN }} - - name: Build and push the docker image - run: ./docker/buildx-and-push.sh - env: - PLATFORM: ${{ matrix.platform }} + - name: Build the docker image + run: ./docker/build.sh + + - name: Push the docker image to DockerHub + run: docker push --all-tags documenso/documenso + + - name: Push the docker image to GitHub Container Registry + run: docker push --all-tags ghcr.io/documenso/documenso