Files
matchbox/scripts/dev/release-files
Barak Michener 7ba809adf4 Add contrib/k8s to release tarball (#788)
The docs suggest it is (https://matchbox.psdn.io/deployment/#kubernetes) but they aren't there. They're only in the git checkout. Which is fine, but for consistency.
2020-03-24 23:11:56 -07:00

44 lines
787 B
Bash
Executable File

#!/usr/bin/env bash
# USAGE: ./release-files DEST
set -e
DEST=$1
if [ -z "${DEST}" ]; then
echo "Usage: ${0} DEST"
exit 255
fi
SCRIPTS=$DEST/scripts
CONTRIB=$DEST/contrib
cp CHANGES.md $DEST
cp LICENSE $DEST
cp README.md $DEST
# scripts
mkdir -p $SCRIPTS/tls
cp scripts/get-coreos $SCRIPTS
cp scripts/get-coreos $SCRIPTS
cp scripts/get-coreos $SCRIPTS
cp scripts/tls/README.md $SCRIPTS/tls
cp scripts/tls/cert-gen $SCRIPTS/tls
cp scripts/tls/openssl.conf $SCRIPTS/tls
# systemd
mkdir -p $CONTRIB/systemd
cp -r contrib/systemd/* $CONTRIB/systemd
# k8s manifests
mkdir -p $CONTRIB/k8s
cp -r contrib/k8s/* $CONTRIB/k8s
# examples
mkdir -p $DEST/examples
cp -r examples/{cloud,groups,ignition,profiles,README.md} $DEST/examples
# docs
mkdir -p $DEST/docs
cp -r docs $DEST/docs