Skip to content

Commit

Permalink
feat: support arm build
Browse files Browse the repository at this point in the history
  • Loading branch information
speed2exe committed Dec 26, 2023
1 parent 689486f commit dc6ff03
Showing 1 changed file with 19 additions and 6 deletions.
25 changes: 19 additions & 6 deletions .github/workflows/push_latest_docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,19 +20,32 @@ env:
jobs:
gotrue_image:
runs-on: ubuntu-22.04
strategy:
matrix:
include:
- arch: amd64
- arch: arm64
steps:
- name: Check out the repository
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
run: |
export TAG=${GITHUB_REF#refs/*/}
docker compose build gotrue
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
docker buildx build --platform linux/${{ matrix.arch }} -t appflowyinc/gotrue:${TAG} -t appflowyinc/gotrue:latest --push .
appflowy_cloud_image:
runs-on: ubuntu-22.04
Expand Down

0 comments on commit dc6ff03

Please sign in to comment.