-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path.env.example
executable file
·34 lines (28 loc) · 982 Bytes
/
.env.example
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
32
33
34
#!/usr/bin/env bash
# We only care about OUT_NAME, and IMAGE_REF
# You can derive them from image and tag
# can be local or an output tag, needs to be in storage
IMAGE=ghcr.io/ublue-os/bazzite
TAG=40-20240614
MAX_LAYERS=69
# PREFILL_RATIO=0.3
# PREV_TAG=40-20240611
# Skip compression if recompressing during upload
# Halves build time
# export SKIP_COMPRESSION=1
export IMAGE_REF=${IMAGE}:${TAG}
IMAGE_NAME=$(echo $IMAGE | rev | cut -d'/' -f1 | rev)
export OUT_NAME=${IMAGE_NAME}_${TAG}
if [[ -n $PREV_TAG ]]; then
export PREV_NAME=${IMAGE_NAME}_${PREV_TAG}
fi
export IMAGE_REF=${IMAGE}:${TAG}
IMAGE_NAME=$(echo $IMAGE | rev | cut -d'/' -f1 | rev)
export OUT_NAME=oci_${IMAGE_NAME}_${TAG}
export OUT_TAG=${IMAGE_NAME}_${TAG}
export MAX_LAYERS
# Saves intermediary save to ram 2x (once when creating, once when importing)
# But is a folder
export OUT_REF=oci:${OUT_NAME}
# Uncompressed tar file of the compressed layers
# export OUT_REF=oci-archive:${OUT_NAME}.oci-archive