build(justfile): run-*-in-docker builds the image first
All checks were successful
Test / build (map[name:nightly]) (push) Successful in 14m3s
Test / build (map[name:stable]) (push) Successful in 19m3s
Release Please / Release-plz (push) Successful in 1m21s
Release Please / Docker image (push) Successful in 5m25s

This commit is contained in:
Paul Campbell 2025-01-23 08:23:37 +00:00
parent a605c3499a
commit f71e28512d

View file

@ -17,11 +17,16 @@ test-in-docker:
shell-in-docker: shell-in-docker:
docker run --rm -u $(id -u):$(id -g) -it -v ${PWD}:/app/ git.kemitix.net/kemitix/rust:latest bash docker run --rm -u $(id -u):$(id -g) -it -v ${PWD}:/app/ git.kemitix.net/kemitix/rust:latest bash
run-in-docker: docker-test-image := "git.kemitix.net/kemitix/git-next:test"
docker run --rm -u $(id -u):$(id -g) -v ${PWD}:/app/ git.kemitix.net/kemitix/git-next:latest server start
run-ui-in-docker: build-docker:
docker run --rm -u $(id -u):$(id -g) -it -v ${PWD}:/app/ git.kemitix.net/kemitix/git-next:latest server start --ui docker build . -t {{ docker-test-image }}
run-in-docker: build-docker
docker run --rm -u $(id -u):$(id -g) -v ${PWD}:/app/ {{ docker-test-image }} server start
run-ui-in-docker: build-docker
docker run --rm -u $(id -u):$(id -g) -it -v ${PWD}:/app/ {{ docker-test-image }} server start --ui
install-hooks: install-hooks:
@echo "Installing git hooks" @echo "Installing git hooks"