Skip to content

Commit

Permalink
fix: build arm image
Browse files Browse the repository at this point in the history
  • Loading branch information
janezicmatej committed Mar 27, 2024
1 parent 5028457 commit 0bda356
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/build-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,19 +12,19 @@ jobs:
contents: read
packages: write
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: docker/setup-qemu-action@v1
- uses: docker/setup-buildx-action@v1
- uses: docker/setup-qemu-action@v3
- uses: docker/setup-buildx-action@v3

- run: echo "IMAGE_TAG=latest" >> $GITHUB_ENV
if: github.ref_name == 'main'
- run: echo "IMAGE_TAG=${GITHUB_REF##*/}" >> $GITHUB_ENV
if: startsWith(github.ref, 'refs/tags/v')

- name: Login to ghcr.io
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
Expand All @@ -37,7 +37,7 @@ jobs:
REPOSITORY: '${{ github.repository }}'

- name: Build and push default image
uses: docker/build-push-action@v3.2.0
uses: docker/build-push-action@v5
with:
context: . # Because GH actions are for kids and put protection on everything; https://stackoverflow.com/a/71159809/11276254
platforms: linux/amd64,linux/arm64
Expand Down
3 changes: 1 addition & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ FROM node:18-slim as nodemodules
WORKDIR /app

COPY package.json yarn.lock ./
RUN yarn install --frozen-lockfile

RUN yarn install --frozen-lockfile --network-timeout 100000

FROM node:18-slim as build

Expand Down

0 comments on commit 0bda356

Please sign in to comment.