Skip to content

Commit

Permalink
justfile publishing tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
simonneutert committed Oct 30, 2024
1 parent 8fa4ccd commit 525e817
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,12 @@ 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 use `just publish_ghcr_version v0.8.9` to specify the 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:{{project}} -t ghcr.io/simonneutert/labradorite-notebook:latest --push .

0 comments on commit 525e817

Please sign in to comment.