-
-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy path.justfile
More file actions
27 lines (21 loc) · 1012 Bytes
/
.justfile
File metadata and controls
27 lines (21 loc) · 1012 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
27
#!/usr/bin/env -S just --justfile
set quiet := true
set shell := ['bash', '-eu', '-o', 'pipefail', '-c']
bin_dir := justfile_dir() + '/.bin'
[private]
default:
just --list
[doc('Build an app locally')]
[working-directory('.cache')]
local-build app:
rsync -aqIP {{ justfile_dir() }}/include/ {{ justfile_dir() }}/apps/{{ app }}/ .
docker buildx bake --no-cache --metadata-file docker-bake.json --set=*.output=type=docker --load
[doc('Trigger a remote build')]
remote-build app release="false":
gh workflow run release.yaml -f app={{ app }} -f release={{ release }}
[private]
generate-label-config:
find "{{ justfile_dir() }}/apps" -mindepth 1 -maxdepth 1 -type d -printf "%f\n" | while IFS= read -r app; do \
yq -i ". += [{\"name\": \"app/$app\", \"color\": \"027fa0\"}]" {{ justfile_dir() }}/.github/labels.yaml; \
yq -i ". += {\"app/$app\": [{\"changed-files\": [{\"any-glob-to-any-file\": [\"apps/$app/**\"]}]}]}" {{ justfile_dir() }}/.github/labeler.yaml; \
done