Files
homelab/infrastructure/graduated/fedora/arch-build.sh
ducoterra 4d24970e04
All checks were successful
Gitea Actions Demo / build-arch-toolbox (push) Successful in 6m9s
fix build issue with cache causing pacman problems
2024-11-26 20:11:22 -05:00

14 lines
468 B
Bash
Executable File

#!/bin/bash
# Build latest image
podman build \
--no-cache \
-t gitea.reeseapps.com/services/arch-toolbox:latest \
-t gitea.reeseapps.com/services/arch-toolbox:$(date +%s) \
-f ./infrastructure/graduated/fedora/Containerfile
# Stop the current arch toolbox
podman container stop arch-toolbox-latest
# Remove the old container
podman container rm arch-toolbox-latest
# Start with the new image
toolbox create -i gitea.reeseapps.com/services/arch-toolbox:latest