diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 8299ce1f41b1..616ccab62234 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -198,6 +198,13 @@ jobs: name: ${{ env.PKG_NAME }}_${{ needs.get-product-version.outputs.product-version }}_${{ matrix.goos }}_${{ matrix.goarch }}.zip path: ${{ env.PKG_NAME }}_${{ needs.get-product-version.outputs.product-version }}_${{ matrix.goos }}_${{ matrix.goarch }}.zip + - name: Copy license file + env: + LICENSE_DIR: ".release/linux/package/usr/share/doc/${{ env.PKG_NAME }}" + run: | + mkdir -p "$LICENSE_DIR" + cp LICENSE "$LICENSE_DIR/LICENSE.txt" + - name: Package uses: hashicorp/actions-packaging-linux@v1 with: diff --git a/Dockerfile b/Dockerfile index 9aeb2b7bbde7..430b5e526714 100644 --- a/Dockerfile +++ b/Dockerfile @@ -25,8 +25,8 @@ LABEL maintainer="Nomad Team " \ org.opencontainers.image.vendor="HashiCorp" \ org.opencontainers.image.licenses="BUSL-1.1" -RUN mkdir -p /licenses -COPY LICENSE /licenses/LICENSE.txt +RUN mkdir -p /usr/share/doc/nomad +COPY LICENSE /usr/share/doc/nomad/LICENSE.txt COPY dist/$TARGETOS/$TARGETARCH/nomad /bin/ COPY ./scripts/docker-entrypoint.sh /