install frontends in container; use local sha for final image tag

This commit is contained in:
Kegan Myers 2023-07-23 03:00:54 -05:00
parent 9f9bcaeaa4
commit fd3b3177e1
2 changed files with 6 additions and 2 deletions

View file

@ -10,4 +10,7 @@ USER root
RUN mkdir /config && touch /config/prod.secret.exs && chown -R 1000:1000 /opt/akkoma && chown -R 1000:1000 /config RUN mkdir /config && touch /config/prod.secret.exs && chown -R 1000:1000 /opt/akkoma && chown -R 1000:1000 /config
USER akkoma USER akkoma
RUN mix deps.get && mix compile RUN mix deps.get && \
mix compile && \
mix pleroma.frontend install pleroma-fe --ref stable && \
mix pleroma.frontend install admin-fe --ref stable

View file

@ -2,8 +2,9 @@
set -Eeuxo pipefail set -Eeuxo pipefail
AKKOMA_COMMIT=$(cd src; git rev-parse HEAD) AKKOMA_COMMIT=$(cd src; git rev-parse HEAD)
LOCAL_COMMIT=$(git rev-parse HEAD)
AKKOMA_BASE_IMAGE="registry.nrd.li/nrdli/akkoma-base:${AKKOMA_COMMIT}" AKKOMA_BASE_IMAGE="registry.nrd.li/nrdli/akkoma-base:${AKKOMA_COMMIT}"
AKKOMA_FINAL_IMAGE="registry.nrd.li/nrdli/akkoma:${AKKOMA_COMMIT}" AKKOMA_FINAL_IMAGE="registry.nrd.li/nrdli/akkoma:${LOCAL_COMMIT}"
pushd src pushd src
docker build \ docker build \