Update k8s manifests
This commit is contained in:
parent
23674dcf07
commit
03f13e5c41
@ -31,7 +31,7 @@ data:
|
|||||||
|
|
||||||
# Install reprepro (one-time, cached in PVC)
|
# Install reprepro (one-time, cached in PVC)
|
||||||
if ! command -v reprepro &>/dev/null; then
|
if ! command -v reprepro &>/dev/null; then
|
||||||
apt-get update && apt-get install -y --no-install-recommends reprepro gpg
|
apt-get update && apt-get install -y --no-install-recommends reprepro gpg gpg-agent
|
||||||
rm -rf /var/lib/apt/lists/*
|
rm -rf /var/lib/apt/lists/*
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -41,20 +41,14 @@ data:
|
|||||||
# Export public key for clients
|
# Export public key for clients
|
||||||
gpg --armor --export > /repo/pubkey.gpg
|
gpg --armor --export > /repo/pubkey.gpg
|
||||||
|
|
||||||
# Init reprepro if not done
|
# Always ensure conf is up-to-date and repo is initialized
|
||||||
if [ ! -f /repo/debian/db/version ]; then
|
|
||||||
echo "Initializing reprepro..."
|
|
||||||
mkdir -p /repo/debian/conf
|
|
||||||
cp /config/distributions /repo/debian/conf/
|
|
||||||
cp /config/options /repo/debian/conf/
|
|
||||||
cd /repo/debian && reprepro export
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Always ensure conf is up-to-date
|
|
||||||
mkdir -p /repo/debian/conf
|
mkdir -p /repo/debian/conf
|
||||||
cp /config/distributions /repo/debian/conf/
|
cp /config/distributions /repo/debian/conf/
|
||||||
cp /config/options /repo/debian/conf/
|
cp /config/options /repo/debian/conf/
|
||||||
|
|
||||||
|
# Export (initialize or re-sign) the repo
|
||||||
|
cd /repo/debian && reprepro export
|
||||||
|
|
||||||
# Index page
|
# Index page
|
||||||
cat > /repo/index.html <<'HTML'
|
cat > /repo/index.html <<'HTML'
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user