diff --git a/.github/workflows/deployment-docker-image.yml b/.github/workflows/deployment-docker-image.yml index 63592aff5..3611ae31e 100644 --- a/.github/workflows/deployment-docker-image.yml +++ b/.github/workflows/deployment-docker-image.yml @@ -11,6 +11,11 @@ on: required: false default: true description: Send notifications + push-image: + type: boolean + required: false + default: true + description: Push Docker Image permissions: contents: write @@ -93,9 +98,9 @@ jobs: id: buildPushAction uses: docker/build-push-action@v6 with: - platforms: linux/amd64 # we currently do't build for linux/arm64 as it's really slow and we'll move to a self hosted runner for that or use the official github runner, once it's available + platforms: linux/amd64,linux/arm64 context: . - push: true + push: ${{ github.events.inputs.push-image && 'true' || 'false' }} tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} network: host diff --git a/Dockerfile b/Dockerfile index d1379e26e..a0e2c5949 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM node:20.17.0-alpine AS base +FROM --platform=linux/amd64 node:20.17.0-alpine AS base FROM base AS builder RUN apk add --no-cache libc6-compat