aboutsummaryrefslogtreecommitdiff
path: root/cmd/containerbuild/main.go
AgeCommit message (Collapse)AuthorFilesLines
2025-04-22fix: improve error handling and create the json encoder once #331 (#332)Jason Cameron1-1/+1
* fix: improve error handling for resource closing and JSON encoding in MakeChallenge * chore: update CHANGELOG with recent changes and improvements * refactor: simplify RenderIndex function and improve error handling --------- Signed-off-by: Jason Cameron <git@jasoncameron.dev>
2025-04-13cmd/containerbuild/main.go: fix docker tag parsing (#260)rayer1-3/+3
Change the parsing of repository and tag to match the last colon. This fixes container builds when the repository already contains an earlier colon. Signed-off-by: rayer <70722312+rayes0@users.noreply.github.com>
2025-03-29cmd/containerbuild: use TrimSuffix instead of TrimRight (#157)Fijxu1-1/+1
Using TrimRight will remove all characters from `*dockerRepo` from right to left that match a character contained on `"/"+filepath.Base(*dockerRepo)` (the cutset) until it doesn't matches anymore. So for example, if `dockerRepo` is `example.com/fijxu/anubis`, and `"/"+filepath.Base(*dockerRepo)` is `/anubis`, it will remove `u/anubis` and not just `/anubis` from `dockerRepo` because `u` is a character inside the cutoff.
2025-03-29Add staticheck to CI (#152)Xe Iaso1-6/+0
* Add staticheck to CI Signed-off-by: Xe Iaso <me@xeiaso.net> * fix staticcheck warnings Signed-off-by: Xe Iaso <me@xeiaso.net> * oh, right, playwright is broken Signed-off-by: Xe Iaso <me@xeiaso.net> --------- Signed-off-by: Xe Iaso <me@xeiaso.net>
2025-03-22Fix docker image CI for pull requests (#84)Xe Iaso1-18/+1
Closes #65 Pull request images will now be `ttl.sh/techaro/pr-{number}/anubis:24h`.
2025-03-21cmd/containerbuild: default to ttl.sh for third party contributions (#51)Xe Iaso1-0/+38
* cmd/containerbuild: default to ttl.sh for third party contributions Closes #48 Signed-off-by: Xe Iaso <me@xeiaso.net> * track comment tags Signed-off-by: Xe Iaso <me@xeiaso.net> * empty commit to make sure double-commenting doesn't work Signed-off-by: Xe Iaso <me@xeiaso.net> --------- Signed-off-by: Xe Iaso <me@xeiaso.net>
2025-03-19cmd/containerbuild: set container build timestamp to the timestamp of the ↵Xe Iaso1-0/+10
commit (#15) Signed-off-by: Xe Iaso <me@xeiaso.net>
2025-03-19Try using ko to build imagesXe Iaso1-0/+133
Signed-off-by: Xe Iaso <me@xeiaso.net>