feat: update deploy configuration
All checks were successful
Publish image / Generate job matrices (push) Successful in 8s
Publish image / create-docker-images (map[name:devbox path:boxes/devbox]) (push) Successful in 3m16s

This commit is contained in:
Alexander Navarro 2024-11-12 16:14:06 -03:00
parent 5eb1cb2618
commit 9368e5fe24
Signed by untrusted user who does not match committer: anavarro
GPG key ID: 6426043E9FA3E3B5
3 changed files with 21 additions and 3 deletions

17
boxes/devbox/.justfile Normal file
View 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}}

View file

@ -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:

View file

@ -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