repo: gitea: workflows: dfi: update to reflect default paths

This commit is contained in:
2026-02-17 16:49:42 -08:00
parent 4d6a41a38a
commit 7c9f678c25
2 changed files with 53 additions and 57 deletions

View File

@@ -50,15 +50,11 @@ function host::clean()
docker system prune -f
docker builder prune -af
# Remove default `dfi` layout
# Remove default environment and layout
local _paths
_paths+=(".bashrc")
_paths+=(".config")
_paths+=(".docker")
_paths+=("docker-finance")
_paths+=("finance-flow")
_paths+=("plugins")
_paths+=("share.d")
for _path in "${_paths[@]}"; do
rm -fr "${HOME:?}/${_path:?}"
done
@@ -78,7 +74,7 @@ function host::clean()
function client::install()
{
"${HOME:?}"/docker-finance/client/install.bash
"${HOME:?}"/docker-finance/repo/client/install.bash
source "${HOME:?}"/.bashrc
}
@@ -134,7 +130,7 @@ function client::finance::edit()
# Build: uncomment all optional packages and plugin dependencies
if [[ "$_tag" == "default" ]]; then
local _file
_file="${HOME:?}/.config/docker-finance.d/client/$(uname -s)-$(uname -m)/archlinux/default/Dockerfiles/${USER:?}@$(uname -n)"
_file="${HOME:?}/docker-finance/conf.d/client/$(uname -s)-$(uname -m)/archlinux/default/Dockerfiles/${USER:?}@$(uname -n)"
[ ! -f "$_file" ] && exit 1
sed -i '18,56s/#//' "$_file"
fi
@@ -372,7 +368,7 @@ function container::finance::edit()
[[ -z "$CI_DFI_FETCH_MOBULA" || -z "$CI_DFI_FETCH_ETHERSCAN" ]] && exit 1
local -r _file="${HOME}/finance-flow/profiles/testprofile/${USER}/docker-finance.d/fetch/fetch.yaml"
local -r _file="${HOME}/docker-finance/flow/profiles/testprofile/${USER}/conf.d/fetch/fetch.yaml"
[ ! -f "$_file" ] && exit 1
# `prices`
@@ -625,7 +621,7 @@ function container::finance::times()
# NOTE: impl-specific: currently, timewarrior requires confirmation
# which cannot be passed here (via "< <(echo yes)").
local -r _path="${HOME:?}/finance-flow/times/timew"
local -r _path="${HOME:?}/docker-finance/flow/times/timew"
mkdir -p "$_path" && touch "${_path}/timewarrior.cfg"
# Initial run presents confirmation dialog (so echo "yes")