-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjustfile
31 lines (30 loc) · 1019 Bytes
/
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
25
26
27
28
29
30
31
# evaluate the container
[no-exit-message]
fedora-toolbox-container args="":
dagger \
--progress={{ progress }} \
call \
-m toolbox/fedora \
container {{ args }}
# - set labels & tags from the commandline to override (tags="foo,bar")
# - requires the following env:
# - GITHUB_USERNAME
# - GITHUB_TOKEN
# - COSIGN_PASSWORD
# - COSIGN_PRIVATE_KEY
# publish and sign atomic image
fedora-toolbox-publish-and-sign name="fedora-toolbox" skip-registry-namespace="false":
dagger \
--progress={{ progress }} \
call \
-m toolbox/fedora \
publish-and-sign \
--registry=ghcr.io \
--image-name="{{ name }}" \
--skip-default-tags \
--username=$GITHUB_USERNAME \
--secret=env:GITHUB_TOKEN \
--additional-tags="$(printf "{{ tags }}" | sed -n -e 'H;${x;s/\n/,/g;s/^,//;p;}' )" \
--skip-registry-namespace={{ skip-registry-namespace }} \
--cosign-private-key=env:COSIGN_PRIVATE_KEY \
--cosign-password=env:COSIGN_PASSWORD