-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjustfile
24 lines (18 loc) · 1.04 KB
/
justfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
default:
@just --list
@echo "\n\nAvailabe rake tasks:\n" && bundle exec rake --tasks
dev:
@docker buildx build -f Dockerfile . -t labra && docker run --rm -it -p"9292:9292" --name labra labra
reset_default_memos:
@bundle exec rake reset_default_memos
test:
@docker build -f Dockerfile.test . -t labra-test && docker run --rm -it labra-test
pretty_js:
@npx prettier --write assets/js/**/*.js
[doc("Publish a new version to ghcr.io with the tag 'main'")]
publish_ghcr_main:
docker buildx build --platform linux/amd64,linux/arm64 -t ghcr.io/simonneutert/labradorite-notebook:main --push .
[confirm("Are you sure you want to publish a new version? Please ensure once more `just publish_ghcr_version <v-your-version>` is the correct version.")]
[doc("Publish a new version to ghcr.io with the specified version including the tag 'latest'")]
publish_ghcr_version version:
docker buildx build --platform linux/amd64,linux/arm64 -t ghcr.io/simonneutert/labradorite-notebook:{{version}} -t ghcr.io/simonneutert/labradorite-notebook:latest --push .