mirror of
https://github.com/sct/overseerr.git
synced 2025-10-01 07:53:51 +02:00
ci: build arm64 and amd64 container images for ci images (#1036)
This commit is contained in:
1
.github/workflows/ci.yml
vendored
1
.github/workflows/ci.yml
vendored
@@ -59,6 +59,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
file: ./Dockerfile
|
file: ./Dockerfile
|
||||||
|
platforms: linux/amd64,linux/arm64
|
||||||
push: true
|
push: true
|
||||||
build-args: |
|
build-args: |
|
||||||
COMMIT_TAG=${{ github.sha }}
|
COMMIT_TAG=${{ github.sha }}
|
||||||
|
@@ -1,11 +1,20 @@
|
|||||||
FROM node:14.16-alpine AS BUILD_IMAGE
|
FROM node:14.16-alpine AS BUILD_IMAGE
|
||||||
|
|
||||||
|
ARG TARGETPLATFORM
|
||||||
|
ENV TARGETPLATFORM=${TARGETPLATFORM:-linux/amd64}
|
||||||
|
|
||||||
ARG COMMIT_TAG
|
ARG COMMIT_TAG
|
||||||
ENV COMMIT_TAG=${COMMIT_TAG}
|
ENV COMMIT_TAG=${COMMIT_TAG}
|
||||||
|
|
||||||
COPY . /app
|
COPY . /app
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
|
RUN \
|
||||||
|
case "${TARGETPLATFORM}" in \
|
||||||
|
'linux/arm64') apk add --no-cache python make g++ ;; \
|
||||||
|
'linux/arm/v7') apk add --no-cache python make g++ ;; \
|
||||||
|
esac
|
||||||
|
|
||||||
RUN yarn --frozen-lockfile && \
|
RUN yarn --frozen-lockfile && \
|
||||||
yarn build
|
yarn build
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user