mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-10-29 17:52:32 +00:00
legal: include license in release zip and docker image (#26801)
* legal: include license in release zip and docker image * Move license logic to script * Add cp license to build vault action * test * Trigger Build
This commit is contained in:
@@ -123,8 +123,8 @@ function build() {
|
||||
popd
|
||||
}
|
||||
|
||||
# Prepare legal requirements for packaging
|
||||
function prepare_legal() {
|
||||
# ENT: Prepare legal requirements for packaging
|
||||
function prepare_ent_legal() {
|
||||
: "${PKG_NAME:="vault"}"
|
||||
|
||||
pushd "$(repo_root)"
|
||||
@@ -137,6 +137,21 @@ function prepare_legal() {
|
||||
popd
|
||||
}
|
||||
|
||||
# CE: Prepare legal requirements for packaging
|
||||
function prepare_ce_legal() {
|
||||
: "${PKG_NAME:="vault"}"
|
||||
|
||||
pushd "$(repo_root)"
|
||||
|
||||
mkdir -p dist
|
||||
cp LICENSE dist/LICENSE.txt
|
||||
|
||||
mkdir -p ".release/linux/package/usr/share/doc/$PKG_NAME"
|
||||
cp LICENSE ".release/linux/package/usr/share/doc/$PKG_NAME/LICENSE.txt"
|
||||
|
||||
popd
|
||||
}
|
||||
|
||||
# Package version converts a vault version string into a compatible representation for system
|
||||
# packages.
|
||||
function version_package() {
|
||||
@@ -161,8 +176,11 @@ function main() {
|
||||
date)
|
||||
build_date
|
||||
;;
|
||||
prepare-legal)
|
||||
prepare_legal
|
||||
prepare-ent-legal)
|
||||
prepare_ent_legal
|
||||
;;
|
||||
prepare-ce-legal)
|
||||
prepare_ce_legal
|
||||
;;
|
||||
revision)
|
||||
build_revision
|
||||
|
||||
Reference in New Issue
Block a user