-
-
Notifications
You must be signed in to change notification settings - Fork 23
Expand file tree
/
Copy pathjustfile
More file actions
26 lines (20 loc) · 928 Bytes
/
justfile
File metadata and controls
26 lines (20 loc) · 928 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# Justfile for arborium development tasks
# Docker image settings
docker_image := "ghcr.io/bearcove/arborium-plugin-builder"
docker_tag := "latest"
# Build the plugin-builder Docker image (for linux/amd64 - GitHub Actions runners)
docker-build:
docker build --platform linux/amd64 -t {{docker_image}}:{{docker_tag}} -f Dockerfile.ci .
# Push the plugin-builder Docker image to GHCR
docker-push: docker-build
docker push {{docker_image}}:{{docker_tag}}
# Build and push with a specific tag
docker-release tag:
docker build --platform linux/amd64 -t {{docker_image}}:{{tag}} -f Dockerfile.ci .
docker push {{docker_image}}:{{tag}}
# Login to GitHub Container Registry (requires GITHUB_TOKEN env var or gh auth)
docker-login:
@echo "Logging in to ghcr.io..."
@gh auth token | docker login ghcr.io -u $(gh api user --jq .login) --password-stdin
grammar-test lang:
cargo xtask grammar-test {{lang}}