Fix release path

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel 2021-02-10 14:11:20 +01:00
parent c6efc8dacc
commit f0d152f510
No known key found for this signature in database
GPG key ID: A061B9DDE0CA0773

View file

@ -205,18 +205,32 @@ build-docker-tag:
package-app: package-app:
stage: package stage: package
variables: variables: &release-variables
MIX_ENV: "prod" MIX_ENV: "prod"
script: script: &release-script
- mix local.hex --force - mix local.hex --force
- mix local.rebar --force - mix local.rebar --force
- mix deps.get - mix deps.get
- mix phx.digest - 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: artifacts:
expire_in: 2 days expire_in: 2 days
paths: paths:
- _build/prod/rel - release
release-upload: release-upload:
stage: upload stage: upload