Merge branch 'test-build-multiple-os' into 'main'
Test multi-os building Closes #1081 See merge request framasoft/mobilizon!1209
This commit is contained in:
commit
c49200f82b
@ -239,9 +239,15 @@ build-docker-tag:
|
|||||||
|
|
||||||
# Packaging app for amd64
|
# Packaging app for amd64
|
||||||
package-app:
|
package-app:
|
||||||
|
image: hexpm/elixir:1.13.4-erlang-24.3.2-${OS}
|
||||||
stage: package
|
stage: package
|
||||||
|
before_script:
|
||||||
|
- apt-get update && apt-get install -yq build-essential git curl cmake
|
||||||
variables: &release-variables
|
variables: &release-variables
|
||||||
MIX_ENV: "prod"
|
MIX_ENV: "prod"
|
||||||
|
DEBIAN_FRONTEND: noninteractive
|
||||||
|
TZ: Etc/UTC
|
||||||
|
APP_ASSET: "${CI_PROJECT_NAME}_${CI_COMMIT_REF_NAME}_${ARCH}_${OS}.tar.gz"
|
||||||
script: &release-script
|
script: &release-script
|
||||||
- mix local.hex --force
|
- mix local.hex --force
|
||||||
- mix local.rebar --force
|
- mix local.rebar --force
|
||||||
@ -260,6 +266,9 @@ package-app:
|
|||||||
expire_in: 2 days
|
expire_in: 2 days
|
||||||
paths:
|
paths:
|
||||||
- ${APP_ASSET}
|
- ${APP_ASSET}
|
||||||
|
parallel:
|
||||||
|
matrix:
|
||||||
|
- OS: ["debian-bullseye-20210902", "debian-buster-20210902", "ubuntu-focal-20211006", "ubuntu-bionic-20210930"]
|
||||||
|
|
||||||
package-app-dev:
|
package-app-dev:
|
||||||
stage: package
|
stage: package
|
||||||
@ -282,7 +291,9 @@ multi-arch-release:
|
|||||||
DOCKER_TLS_VERIFY: 1
|
DOCKER_TLS_VERIFY: 1
|
||||||
DOCKER_CERT_PATH: "$DOCKER_TLS_CERTDIR/client"
|
DOCKER_CERT_PATH: "$DOCKER_TLS_CERTDIR/client"
|
||||||
DOCKER_DRIVER: overlay2
|
DOCKER_DRIVER: overlay2
|
||||||
APP_ASSET: "${CI_PROJECT_NAME}_${CI_COMMIT_REF_NAME}_${ARCH}.tar.gz"
|
APP_ASSET: "${CI_PROJECT_NAME}_${CI_COMMIT_REF_NAME}_${ARCH}_${OS}.tar.gz"
|
||||||
|
# For now, arm and arm64 are only build for debian bullseye version
|
||||||
|
OS: debian-bullseye
|
||||||
services:
|
services:
|
||||||
- docker:20.10.12-dind
|
- docker:20.10.12-dind
|
||||||
cache: {}
|
cache: {}
|
||||||
|
Loading…
Reference in New Issue
Block a user