move src directory to akkoma

This commit is contained in:
Kegan Myers 2023-07-23 03:17:35 -05:00
parent fd3b3177e1
commit 4e90652410
5 changed files with 7 additions and 4 deletions

View file

@ -1,3 +1,3 @@
*
!src
!akkoma
!prod.exs

3
.gitmodules vendored
View file

@ -1,3 +1,6 @@
[submodule "src"]
path = src
url = https://akkoma.dev/AkkomaGang/akkoma.git
[submodule "akkoma"]
path = akkoma
url = https://akkoma.dev/AkkomaGang/akkoma.git

View file

@ -3,7 +3,7 @@ FROM registry.nrd.li/nrdli/akkoma-base:${AKKOMA_COMMIT}
ENV PROD_SECRET_FILE=/config/prod.secret.exs
ADD src /opt/akkoma/
ADD akkoma /opt/akkoma/
ADD prod.exs /opt/akkoma/config/prod.exs
USER root

View file

View file

@ -1,12 +1,12 @@
#!/bin/bash
set -Eeuxo pipefail
AKKOMA_COMMIT=$(cd src; git rev-parse HEAD)
AKKOMA_COMMIT=$(cd akkoma; git rev-parse HEAD)
LOCAL_COMMIT=$(git rev-parse HEAD)
AKKOMA_BASE_IMAGE="registry.nrd.li/nrdli/akkoma-base:${AKKOMA_COMMIT}"
AKKOMA_FINAL_IMAGE="registry.nrd.li/nrdli/akkoma:${LOCAL_COMMIT}"
pushd src
pushd akkoma
docker build \
-t "${AKKOMA_BASE_IMAGE}" \
.