From f0d152f510042b68d063bc907bb4b9896423f1c1 Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Wed, 10 Feb 2021 14:11:20 +0100 Subject: [PATCH] Fix release path Signed-off-by: Thomas Citharel --- .gitlab-ci.yml | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 908dc0e7..132fec6d 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -205,18 +205,32 @@ build-docker-tag: package-app: stage: package - variables: + variables: &release-variables MIX_ENV: "prod" - script: + script: &release-script - mix local.hex --force - mix local.rebar --force - mix deps.get - mix phx.digest - - mix release + - mix release --path release + - cd release && ln -s lib/mobilizon-*/priv priv + only: + - tags@framasoft/mobilizon + artifacts: + expire_in: never + paths: + - release + +package-app-dev: + stage: package + variables: *release-variables + script: *release-script + except: + - tags@framasoft/mobilizon artifacts: expire_in: 2 days paths: - - _build/prod/rel + - release release-upload: stage: upload