fix build issue with cache causing pacman problems
All checks were successful
Gitea Actions Demo / build-arch-toolbox (push) Successful in 6m9s

This commit is contained in:
2024-11-26 19:50:45 -05:00
parent 5495011d49
commit 4d24970e04
6 changed files with 20 additions and 25 deletions

View File

@@ -347,8 +347,8 @@ You can build and run the image wit this (See `Containerfile` in this directory)
```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
# Test with podman
@@ -363,16 +363,6 @@ toolbox create -i gitea.reeseapps.com/services/arch-toolbox:latest
SHELL=/bin/zsh toolbox enter
```
You can push the image up to your registry like normal:
```bash
# Push all tags for the "latest" image
podman image ls \
-f 'reference=gitea.reeseapps.com/services/arch-toolbox:latest' \
-n --no-trunc --format '{{ .Repository }}:{{ .Tag }}' \
| xargs -I {} podman push {}
```
In vscode you can set this as your default build task for homelab and trigger it with
`ctrl shift B`