Update build ci
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
parent
475820472f
commit
3928c2fb2a
@ -189,7 +189,7 @@ pages:
|
|||||||
|
|
||||||
.docker: &docker
|
.docker: &docker
|
||||||
stage: docker
|
stage: docker
|
||||||
image: docker:20.10.12
|
image: docker:20.10.18
|
||||||
variables:
|
variables:
|
||||||
DOCKER_TLS_CERTDIR: "/certs"
|
DOCKER_TLS_CERTDIR: "/certs"
|
||||||
DOCKER_HOST: tcp://docker:2376
|
DOCKER_HOST: tcp://docker:2376
|
||||||
@ -197,13 +197,13 @@ pages:
|
|||||||
DOCKER_CERT_PATH: "$DOCKER_TLS_CERTDIR/client"
|
DOCKER_CERT_PATH: "$DOCKER_TLS_CERTDIR/client"
|
||||||
DOCKER_DRIVER: overlay2
|
DOCKER_DRIVER: overlay2
|
||||||
services:
|
services:
|
||||||
- docker:20.10.12-dind
|
- docker:20.10.18-dind
|
||||||
cache: {}
|
cache: {}
|
||||||
before_script:
|
before_script:
|
||||||
# Install buildx
|
# Install buildx
|
||||||
- wget https://github.com/docker/buildx/releases/download/v0.8.1/buildx-v0.8.1.linux-amd64
|
- wget https://github.com/docker/buildx/releases/download/v0.9.1/buildx-v0.9.1.linux-amd64
|
||||||
- mkdir -p ~/.docker/cli-plugins/
|
- mkdir -p ~/.docker/cli-plugins/
|
||||||
- mv buildx-v0.8.1.linux-amd64 ~/.docker/cli-plugins/docker-buildx
|
- mv buildx-v0.9.1.linux-amd64 ~/.docker/cli-plugins/docker-buildx
|
||||||
- chmod a+x ~/.docker/cli-plugins/docker-buildx
|
- chmod a+x ~/.docker/cli-plugins/docker-buildx
|
||||||
# Create env
|
# Create env
|
||||||
- docker context create tls-environment
|
- docker context create tls-environment
|
||||||
@ -244,7 +244,7 @@ build-docker-tag:
|
|||||||
|
|
||||||
# Packaging app for amd64
|
# Packaging app for amd64
|
||||||
package-app:
|
package-app:
|
||||||
image: mobilizon/buildpack:1.13.4-erlang-24.3.3-debian-buster
|
image: mobilizon/buildpack:1.14.1-erlang-25.1.1-debian-buster
|
||||||
stage: package
|
stage: package
|
||||||
variables: &release-variables
|
variables: &release-variables
|
||||||
MIX_ENV: "prod"
|
MIX_ENV: "prod"
|
||||||
@ -328,6 +328,7 @@ multi-arch-release:
|
|||||||
- if: '$CI_PIPELINE_SOURCE == "schedule"'
|
- if: '$CI_PIPELINE_SOURCE == "schedule"'
|
||||||
- if: $CI_COMMIT_TAG
|
- if: $CI_COMMIT_TAG
|
||||||
timeout: 3h
|
timeout: 3h
|
||||||
|
allow_failure: true
|
||||||
|
|
||||||
# Release
|
# Release
|
||||||
release-upload:
|
release-upload:
|
||||||
@ -348,6 +349,7 @@ release-upload:
|
|||||||
parallel:
|
parallel:
|
||||||
matrix:
|
matrix:
|
||||||
- ARCH: ["amd64", "arm", "arm64"]
|
- ARCH: ["amd64", "arm", "arm64"]
|
||||||
|
allow_failure: true
|
||||||
|
|
||||||
release-create:
|
release-create:
|
||||||
stage: deploy
|
stage: deploy
|
||||||
|
@ -5,14 +5,12 @@ RUN apk add --no-cache python3 build-base libwebp-tools bash imagemagick ncurses
|
|||||||
WORKDIR /build
|
WORKDIR /build
|
||||||
COPY js .
|
COPY js .
|
||||||
|
|
||||||
ENV CYPRESS_INSTALL_BINARY 0
|
|
||||||
|
|
||||||
# Network timeout because it's slow when cross-compiling
|
# Network timeout because it's slow when cross-compiling
|
||||||
RUN yarn install --network-timeout 100000 \
|
RUN yarn install --network-timeout 100000 \
|
||||||
&& yarn run build
|
&& yarn run build
|
||||||
|
|
||||||
# Then, build the application binary
|
# Then, build the application binary
|
||||||
FROM elixir:1.13-alpine AS builder
|
FROM elixir:1.14-alpine AS builder
|
||||||
|
|
||||||
RUN apk add --no-cache build-base git cmake
|
RUN apk add --no-cache build-base git cmake
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user