add LICENSE to release artifacts (#20345)

* add LICENSE(.txt) to zip that goes on releases.hashicorp.com
* add LICENSE(.txt) to linux packages and docker image
* add some more docker labels (including license)
This commit is contained in:
Daniel Bennett
2024-04-12 10:57:15 -05:00
committed by GitHub
parent d40e23f939
commit bd802e43d0
3 changed files with 27 additions and 4 deletions

View File

@@ -114,7 +114,10 @@ pkg/windows_%/nomad: GO_TAGS += timetzdata
# Define package targets for each of the build targets we actually have on this system
define makePackageTarget
pkg/$(1).zip: pkg/$(1)/nomad
pkg/$(1)/LICENSE.txt:
@cp LICENSE pkg/$(1)/LICENSE.txt
pkg/$(1).zip: pkg/$(1)/nomad pkg/$(1)/LICENSE.txt
@echo "==> Packaging for $(1)..."
@zip -j pkg/$(1).zip pkg/$(1)/*