fix docker build command to use built image; remote old reference to final image

This commit is contained in:
Kegan Myers 2023-07-23 15:01:49 -05:00
parent a084b311b2
commit 54d8907ebb
2 changed files with 2 additions and 3 deletions

0
.build.sh Normal file → Executable file
View file

View file

@ -2,9 +2,7 @@
set -Eeuxo pipefail set -Eeuxo pipefail
AKKOMA_COMMIT="dd17e0353a9efd66b19803d066ec45fa7d155886" AKKOMA_COMMIT="dd17e0353a9efd66b19803d066ec45fa7d155886"
LOCAL_COMMIT=$(git rev-parse HEAD) AKKOMA_BASE_IMAGE="registry.nrd.li/nrdli/akkoma:${AKKOMA_COMMIT}"
AKKOMA_BASE_IMAGE="registry.nrd.li/nrdli/akkoma-base:${AKKOMA_COMMIT}"
AKKOMA_FINAL_IMAGE="registry.nrd.li/nrdli/akkoma:${LOCAL_COMMIT}"
# clone akkoma source code # clone akkoma source code
if [ -d akkoma ]; then if [ -d akkoma ]; then
@ -33,5 +31,6 @@ docker run --rm \
-v "$(pwd)/prod.secret.exs:/config/prod.secret.exs" \ -v "$(pwd)/prod.secret.exs:/config/prod.secret.exs" \
-v "$(pwd)/.build.sh:/build.sh" \ -v "$(pwd)/.build.sh:/build.sh" \
--entrypoint "" \ --entrypoint "" \
"${AKKOMA_BASE_IMAGE}" \
/build.sh /build.sh
# docker push "${AKKOMA_FINAL_IMAGE}" # docker push "${AKKOMA_FINAL_IMAGE}"