🐳 Fix arm builds

This commit is contained in:
Jan Oberhauser 2022-03-08 09:38:53 +01:00
parent 7868bf2484
commit c11edb2521
2 changed files with 3 additions and 2 deletions

View file

@ -28,7 +28,7 @@ jobs:
context: ./docker/images/n8n context: ./docker/images/n8n
build-args: | build-args: |
N8N_VERSION=${{steps.vars.outputs.tag}} N8N_VERSION=${{steps.vars.outputs.tag}}
platforms: linux/amd64 platforms: linux/amd64,linux/arm64,linux/arm/v7
push: true push: true
tags: | tags: |
${{ secrets.DOCKER_USERNAME }}/n8n:${{ steps.vars.outputs.tag }} ${{ secrets.DOCKER_USERNAME }}/n8n:${{ steps.vars.outputs.tag }}
@ -39,7 +39,7 @@ jobs:
context: ./docker/images/n8n-debian context: ./docker/images/n8n-debian
build-args: | build-args: |
N8N_VERSION=${{ steps.vars.outputs.tag }} N8N_VERSION=${{ steps.vars.outputs.tag }}
platforms: linux/amd64 platforms: linux/amd64,linux/arm64,linux/arm/v7
push: true push: true
tags: | tags: |
${{ secrets.DOCKER_USERNAME }}/n8n:${{ steps.vars.outputs.tag }}-debian ${{ secrets.DOCKER_USERNAME }}/n8n:${{ steps.vars.outputs.tag }}-debian

View file

@ -13,6 +13,7 @@ USER root
# Install n8n and the also temporary all the packages # Install n8n and the also temporary all the packages
# it needs to build it correctly. # it needs to build it correctly.
RUN apk --update add --virtual build-dependencies python3 build-base ca-certificates && \ RUN apk --update add --virtual build-dependencies python3 build-base ca-certificates && \
npm config set python "$(which python3)" && \
npm_config_user=root npm install -g full-icu n8n@${N8N_VERSION} && \ npm_config_user=root npm install -g full-icu n8n@${N8N_VERSION} && \
apk del build-dependencies \ apk del build-dependencies \
&& rm -rf /root /tmp/* /var/cache/apk/* && mkdir /root; && rm -rf /root /tmp/* /var/cache/apk/* && mkdir /root;