From a2289c4d036a4f9e356858fd3fe2e807d41d7318 Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Mon, 17 Oct 2022 08:37:22 +0200 Subject: [PATCH] Run phx.digest before mix release Closes #1167 Signed-off-by: Thomas Citharel --- .gitlab-ci.yml | 2 +- docker/multiarch/Dockerfile | 1 + docker/production/Dockerfile | 3 +-- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index e800dcdb..3211e149 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -274,7 +274,7 @@ package-app: - mix local.rebar --force - mix deps.get --only-prod - mix compile - - mix phx.digest.clean --all && \ + - mix phx.digest.clean --all && mix phx.digest - mix release --path release/mobilizon - cd release/mobilizon && ln -s lib/mobilizon-*/priv priv && cd ../../ - du -sh release/ diff --git a/docker/multiarch/Dockerfile b/docker/multiarch/Dockerfile index cb11aaa1..d4e3d0d7 100644 --- a/docker/multiarch/Dockerfile +++ b/docker/multiarch/Dockerfile @@ -35,6 +35,7 @@ RUN source /root/.bashrc && \ mix deps.get --only prod && \ mix compile && \ mix phx.digest.clean --all && \ + mix phx.digest && \ mix release --path release/mobilizon && \ cd release/mobilizon && \ ln -s lib/mobilizon-*/priv priv && \ diff --git a/docker/production/Dockerfile b/docker/production/Dockerfile index 7f19b640..5a8b599a 100644 --- a/docker/production/Dockerfile +++ b/docker/production/Dockerfile @@ -28,8 +28,7 @@ COPY rel ./rel COPY support ./support COPY --from=assets ./priv/static ./priv/static -RUN mix phx.digest.clean --all \ - && mix release +RUN mix phx.digest.clean --all && mix phx.digest && mix release # Finally setup the app FROM alpine