mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
feat(docker): configure fastapi's commit_hash based on $COMMIT_HASH
Signed-off-by: Kevin Morris <kevr@0cost.org>
This commit is contained in:
parent
b49b629395
commit
8239dcdd1b
4 changed files with 7 additions and 0 deletions
|
@ -11,6 +11,10 @@ sed -ri "s;^(aur_location) = .+;\1 = ${AURWEB_FASTAPI_PREFIX};" conf/config
|
|||
sed -ri 's/^(cache) = .+/\1 = redis/' conf/config
|
||||
sed -ri 's|^(redis_address) = .+|\1 = redis://redis|' conf/config
|
||||
|
||||
if [ "$COMMIT_HASH" ]; then
|
||||
sed -ri "s/^;?(commit_hash) =.*$/\1 = $COMMIT_HASH/" conf/config
|
||||
fi
|
||||
|
||||
sed -ri "s|^(git_clone_uri_anon) = .+|\1 = ${AURWEB_FASTAPI_PREFIX}/%s.git|" conf/config.defaults
|
||||
sed -ri "s|^(git_clone_uri_priv) = .+|\1 = ${AURWEB_SSHD_PREFIX}/%s.git|" conf/config.defaults
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue