chore: use warpbuild for docker publishing
This commit is contained in:
28
.github/workflows/publish.yml
vendored
28
.github/workflows/publish.yml
vendored
@@ -6,27 +6,19 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ${{ matrix.os }}
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
platform:
|
os:
|
||||||
- linux/amd64
|
- warp-ubuntu-latest-x64-4x
|
||||||
- linux/arm/v6
|
- warp-ubuntu-latest-arm64-4x
|
||||||
- linux/arm/v7
|
|
||||||
- linux/arm64
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
fetch-tags: true
|
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
|
- name: Login to DockerHub
|
||||||
uses: docker/login-action@v3
|
uses: docker/login-action@v3
|
||||||
with:
|
with:
|
||||||
@@ -40,7 +32,11 @@ jobs:
|
|||||||
username: ${{ github.repository_owner }}
|
username: ${{ github.repository_owner }}
|
||||||
password: ${{ secrets.GH_TOKEN }}
|
password: ${{ secrets.GH_TOKEN }}
|
||||||
|
|
||||||
- name: Build and push the docker image
|
- name: Build the docker image
|
||||||
run: ./docker/buildx-and-push.sh
|
run: ./docker/build.sh
|
||||||
env:
|
|
||||||
PLATFORM: ${{ matrix.platform }}
|
- 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
|
||||||
|
|||||||
Reference in New Issue
Block a user