Skip to content

Commit

Permalink
ci: switch back on arm64 builds
Browse files Browse the repository at this point in the history
  • Loading branch information
farioas committed Jun 6, 2023
1 parent 482ddec commit 303c0aa
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/docker-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,18 +107,16 @@ jobs:
exit 1
fi
# - name: Set up QEMU
# uses: docker/setup-qemu-action@v2

# TODO: platforms: linux/amd64,linux/arm64
- name: Set up QEMU
uses: docker/setup-qemu-action@v2

- name: Push Docker image
uses: docker/[email protected]
id: docker_build_and_push
with:
context: .
file: Dockerfile
platforms: linux/amd64
platforms: linux/amd64,linux/arm64
push: true
tags: ${{ env.IMAGE_NAME }}:${{ steps.version.outputs.image_version }}
cache-from: type=gha
Expand Down
4 changes: 4 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ WORKDIR /label-studio/label_studio/frontend
COPY --chown=1001:0 label_studio/frontend .
COPY --chown=1001:0 label_studio/__init__.py /label-studio/label_studio/__init__.py

# Fix Docker Arm64 Build
RUN yarn config set registry https://registry.npmjs.org/
RUN yarn config set network-timeout 1200000 # HTTP timeout used when downloading packages, set to 20 minutes

RUN --mount=type=cache,target=$NPM_CACHE_LOCATION,uid=1001,gid=0 \
yarn install --frozen-lockfile \
&& yarn run build:production
Expand Down

0 comments on commit 303c0aa

Please sign in to comment.