move src directory to akkoma
This commit is contained in:
parent
fd3b3177e1
commit
4e90652410
|
@ -1,3 +1,3 @@
|
||||||
*
|
*
|
||||||
!src
|
!akkoma
|
||||||
!prod.exs
|
!prod.exs
|
||||||
|
|
3
.gitmodules
vendored
3
.gitmodules
vendored
|
@ -1,3 +1,6 @@
|
||||||
[submodule "src"]
|
[submodule "src"]
|
||||||
path = src
|
path = src
|
||||||
url = https://akkoma.dev/AkkomaGang/akkoma.git
|
url = https://akkoma.dev/AkkomaGang/akkoma.git
|
||||||
|
[submodule "akkoma"]
|
||||||
|
path = akkoma
|
||||||
|
url = https://akkoma.dev/AkkomaGang/akkoma.git
|
||||||
|
|
|
@ -3,7 +3,7 @@ FROM registry.nrd.li/nrdli/akkoma-base:${AKKOMA_COMMIT}
|
||||||
|
|
||||||
ENV PROD_SECRET_FILE=/config/prod.secret.exs
|
ENV PROD_SECRET_FILE=/config/prod.secret.exs
|
||||||
|
|
||||||
ADD src /opt/akkoma/
|
ADD akkoma /opt/akkoma/
|
||||||
ADD prod.exs /opt/akkoma/config/prod.exs
|
ADD prod.exs /opt/akkoma/config/prod.exs
|
||||||
|
|
||||||
USER root
|
USER root
|
||||||
|
|
4
build.sh
4
build.sh
|
@ -1,12 +1,12 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
set -Eeuxo pipefail
|
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)
|
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:${LOCAL_COMMIT}"
|
AKKOMA_FINAL_IMAGE="registry.nrd.li/nrdli/akkoma:${LOCAL_COMMIT}"
|
||||||
|
|
||||||
pushd src
|
pushd akkoma
|
||||||
docker build \
|
docker build \
|
||||||
-t "${AKKOMA_BASE_IMAGE}" \
|
-t "${AKKOMA_BASE_IMAGE}" \
|
||||||
.
|
.
|
||||||
|
|
Loading…
Reference in a new issue