feat: update deploy configuration
This commit is contained in:
parent
5eb1cb2618
commit
9368e5fe24
3 changed files with 21 additions and 3 deletions
17
boxes/devbox/.justfile
Normal file
17
boxes/devbox/.justfile
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
clean := "false"
|
||||
box_name := file_stem(invocation_directory())
|
||||
|
||||
|
||||
# Create a new box from current directory
|
||||
[no-cd]
|
||||
build box_name:
|
||||
[[ "{{clean}}" == "true" ]] && sudo rm -rf ${HOME}/chroots/{{ box_name }} || true
|
||||
|
||||
podman build -t {{box_name}}:latest .
|
||||
|
||||
distrobox assemble create
|
||||
|
||||
# Enter the box
|
||||
enter box_name:
|
||||
clear
|
||||
@distrobox enter --clean-path --no-workdir {{box_name}}
|
||||
|
|
@ -18,6 +18,7 @@ RUN --mount=type=cache,target=/var/cache/xbps/ \
|
|||
bat \
|
||||
cocogitto \
|
||||
curl \
|
||||
eza \
|
||||
fd \
|
||||
fzf \
|
||||
gcc \
|
||||
|
|
@ -53,8 +54,8 @@ ENV EDITOR=nvim \
|
|||
|
||||
# Basic setup
|
||||
RUN \
|
||||
# chsh -s /usr/bin/nu ## TODO: first create a configuration for nu
|
||||
chsh -s /usr/bin/zsh \
|
||||
chsh -s /usr/bin/nu \
|
||||
# chsh -s /usr/bin/zsh \
|
||||
&& chmod +x /usr/local/bin/fetch_dots
|
||||
|
||||
# Build commands:
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ cd "$base_dir" || exit
|
|||
if [ -d dots ]; then
|
||||
echo "Dots already exists, updating..."
|
||||
cd dots || exit
|
||||
git pull
|
||||
git pull --rebase --autostash
|
||||
|
||||
else
|
||||
git clone ssh://git@git.alecodes.page:24062/alecodes/dots.git
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue