Fix Docker deployment inputs
Include all addon workspaces and vendored dependencies in image builds, and expose deploy time plus commit metadata on the home page. Amp-Thread-ID: https://ampcode.com/threads/T-01a033d4-0e44-708e-af0e-6166283416ff Co-authored-by: Heaust Azure <heaust.azure@gmail.com>
This commit is contained in:
@@ -50,8 +50,14 @@ if [[ "$(git rev-parse HEAD)" != "$fetched" ]]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
deployed_at="$(date -u +'%Y-%m-%dT%H:%M:%SZ')"
|
||||
commit_message="$(git log -1 --format=%s)"
|
||||
|
||||
printf 'Building the production image...\n'
|
||||
"${compose[@]}" build --pull yawn
|
||||
"${compose[@]}" build --pull \
|
||||
--build-arg "YAWN_DEPLOYED_AT=$deployed_at" \
|
||||
--build-arg "YAWN_DEPLOY_COMMIT_MESSAGE=$commit_message" \
|
||||
yawn
|
||||
"${compose[@]}" up -d --remove-orphans yawn
|
||||
|
||||
container="$("${compose[@]}" ps -q yawn)"
|
||||
|
||||
Reference in New Issue
Block a user