Merge branch 'digest-before-release' into 'main'
Run phx.digest before mix release See merge request framasoft/mobilizon!1293
This commit is contained in:
commit
727a0175c6
@ -274,7 +274,7 @@ package-app:
|
|||||||
- mix local.rebar --force
|
- mix local.rebar --force
|
||||||
- mix deps.get --only-prod
|
- mix deps.get --only-prod
|
||||||
- mix compile
|
- mix compile
|
||||||
- mix phx.digest.clean --all && \
|
- mix phx.digest.clean --all && mix phx.digest
|
||||||
- mix release --path release/mobilizon
|
- mix release --path release/mobilizon
|
||||||
- cd release/mobilizon && ln -s lib/mobilizon-*/priv priv && cd ../../
|
- cd release/mobilizon && ln -s lib/mobilizon-*/priv priv && cd ../../
|
||||||
- du -sh release/
|
- du -sh release/
|
||||||
|
@ -35,6 +35,7 @@ RUN source /root/.bashrc && \
|
|||||||
mix deps.get --only prod && \
|
mix deps.get --only prod && \
|
||||||
mix compile && \
|
mix compile && \
|
||||||
mix phx.digest.clean --all && \
|
mix phx.digest.clean --all && \
|
||||||
|
mix phx.digest && \
|
||||||
mix release --path release/mobilizon && \
|
mix release --path release/mobilizon && \
|
||||||
cd release/mobilizon && \
|
cd release/mobilizon && \
|
||||||
ln -s lib/mobilizon-*/priv priv && \
|
ln -s lib/mobilizon-*/priv priv && \
|
||||||
|
@ -28,8 +28,7 @@ COPY rel ./rel
|
|||||||
COPY support ./support
|
COPY support ./support
|
||||||
COPY --from=assets ./priv/static ./priv/static
|
COPY --from=assets ./priv/static ./priv/static
|
||||||
|
|
||||||
RUN mix phx.digest.clean --all \
|
RUN mix phx.digest.clean --all && mix phx.digest && mix release
|
||||||
&& mix release
|
|
||||||
|
|
||||||
# Finally setup the app
|
# Finally setup the app
|
||||||
FROM alpine
|
FROM alpine
|
||||||
|
Loading…
Reference in New Issue
Block a user