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
1 changed files with 18 additions and 4 deletions

View File

@ -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