1
0
mirror of https://github.com/byulmaru/quesdon synced 2024-11-27 06:18:02 +09:00

ARMv8로 빌드

This commit is contained in:
robin* 2022-04-23 21:45:38 +09:00
parent 5a2cdb59ac
commit 074b2b10bb
2 changed files with 8 additions and 6 deletions

View File

@ -1,14 +1,15 @@
image: jdrouet/docker-with-buildx:stable
services:
- docker:dind
stages:
- build
build:
stage: build
image: docker:latest
services:
- docker:dind
script:
- docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
- docker build --pull -t "$CI_REGISTRY_IMAGE" .
- docker push "$CI_REGISTRY_IMAGE"
- docker buildx create --use
- docker buildx build --push --platform linux/arm64/v8 -t "$CI_REGISTRY_IMAGE" .
only:
- master

View File

@ -5,7 +5,8 @@ ENV BACK_PORT 80
WORKDIR /app
COPY package.json yarn.lock ./
RUN yarn install
RUN yarn config set network-timeout 1000000 -g && \
yarn install
COPY . .
RUN NODE_ENV=production yarn build