mirror of
https://github.com/hashicorp/packer.git
synced 2026-05-28 04:35:38 -04:00
Add LICENSE to Linux packages
This commit is contained in:
parent
c37a892665
commit
98fd73ad74
1 changed files with 7 additions and 0 deletions
7
.github/workflows/build.yml
vendored
7
.github/workflows/build.yml
vendored
|
|
@ -162,6 +162,12 @@ jobs:
|
|||
cp LICENSE.txt "$TARGET_DIR/"
|
||||
go build -o "$BIN_PATH" -ldflags="$LD_FLAGS" -trimpath -buildvcs=false
|
||||
|
||||
- name: Copy license file to config_dir
|
||||
if: ${{ matrix.goos == 'linux' }}
|
||||
env:
|
||||
LICENSE_DIR: ".release/linux/package/usr/share/doc/${{ env.REPO_NAME }}"
|
||||
run: |
|
||||
mkdir -p "$LICENSE_DIR" && cp LICENSE "$LICENSE_DIR/LICENSE.txt"
|
||||
- name: Linux Packaging
|
||||
uses: hashicorp/actions-packaging-linux@v1
|
||||
with:
|
||||
|
|
@ -175,6 +181,7 @@ jobs:
|
|||
binary: "dist/${{ env.REPO_NAME }}"
|
||||
deb_depends: "openssl"
|
||||
rpm_depends: "openssl"
|
||||
config_dir: ".release/linux/package/"
|
||||
- name: Add Linux Package names to env
|
||||
run: |
|
||||
echo "RPM_PACKAGE=$(basename out/*.rpm)" >> $GITHUB_ENV
|
||||
|
|
|
|||
Loading…
Reference in a new issue