feat: support arm build
This commit is contained in:
parent
689486f091
commit
dc6ff036b1
|
|
@ -20,19 +20,32 @@ env:
|
||||||
jobs:
|
jobs:
|
||||||
gotrue_image:
|
gotrue_image:
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
include:
|
||||||
|
- arch: amd64
|
||||||
|
- arch: arm64
|
||||||
steps:
|
steps:
|
||||||
- name: Check out the repository
|
- name: Check out the repository
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Set up QEMU
|
||||||
|
if: matrix.arch == 'arm64'
|
||||||
|
uses: docker/setup-qemu-action@v3
|
||||||
|
|
||||||
|
- name: Set up Docker Buildx
|
||||||
|
uses: docker/setup-buildx-action@v3
|
||||||
|
|
||||||
|
- name: Log in to Docker Hub
|
||||||
|
uses: docker/login-action@v3
|
||||||
|
with:
|
||||||
|
username: ${{ secrets.DOCKER_HUB_USERNAME }}
|
||||||
|
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
|
||||||
|
|
||||||
- name: Build and Push GoTrue
|
- name: Build and Push GoTrue
|
||||||
run: |
|
run: |
|
||||||
export TAG=${GITHUB_REF#refs/*/}
|
export TAG=${GITHUB_REF#refs/*/}
|
||||||
docker compose build gotrue
|
docker buildx build --platform linux/${{ matrix.arch }} -t appflowyinc/gotrue:${TAG} -t appflowyinc/gotrue:latest --push .
|
||||||
docker tag appflowy-cloud-gotrue appflowyinc/gotrue:$TAG
|
|
||||||
echo ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }} | docker login --username appflowyinc --password-stdin
|
|
||||||
docker push appflowyinc/gotrue:$TAG
|
|
||||||
docker tag appflowy-cloud-gotrue appflowyinc/gotrue:latest
|
|
||||||
docker push appflowyinc/gotrue:latest
|
|
||||||
|
|
||||||
appflowy_cloud_image:
|
appflowy_cloud_image:
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue