From 6709da4cea2d26eab0c0dedc2959b66d01ec033c Mon Sep 17 00:00:00 2001 From: Evan Lezar Date: Fri, 28 Jan 2022 17:10:46 +0100 Subject: [PATCH] Rename release.sh to build-packages.sh The name release.sh is overloaded. This change renames the script to make the intent clearer. Signed-off-by: Evan Lezar --- .gitlab-ci.yml | 2 +- DEVELOPMENT.md | 4 +++- scripts/{release.sh => build-packages.sh} | 0 test/release/Makefile | 2 +- 4 files changed, 5 insertions(+), 3 deletions(-) rename scripts/{release.sh => build-packages.sh} (100%) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 86e893d2..9716b97d 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -96,7 +96,7 @@ unit-tests: stage: package-build timeout: 2h 30m script: - - ./scripts/release.sh ${DIST}-${ARCH} + - ./scripts/build-packages.sh ${DIST}-${ARCH} artifacts: name: ${ARTIFACTS_NAME} diff --git a/DEVELOPMENT.md b/DEVELOPMENT.md index 33d48894..ff070c62 100644 --- a/DEVELOPMENT.md +++ b/DEVELOPMENT.md @@ -13,7 +13,7 @@ The `nvidia-container-toolkit` resides in this repo directly. In oder to build the packages, the following command is executed ```sh -./scripts/build-all-components.sh TARGET +./scripts/build-packages.sh TARGET ``` where `TARGET` is a make target that is valid for each of the sub-components. @@ -21,6 +21,8 @@ These include: * `ubuntu18.04-amd64` * `centos8-x86_64` +If no `TARGET` is specified, all valid release targets are built. + The packages are generated in the `dist` folder. ## Testing local changes diff --git a/scripts/release.sh b/scripts/build-packages.sh similarity index 100% rename from scripts/release.sh rename to scripts/build-packages.sh diff --git a/test/release/Makefile b/test/release/Makefile index 3436bf69..37cbee25 100644 --- a/test/release/Makefile +++ b/test/release/Makefile @@ -56,4 +56,4 @@ $(RUN_TARGETS): run-%: image-% # Ensure that the local package root exists $(RELEASE_TARGETS): release-%: $(LOCAL_PACKAGE_ROOT)/$(*)/$(ARCH) - $(PROJECT_ROOT)/scripts/release.sh $(*)-$(ARCH) \ No newline at end of file + $(PROJECT_ROOT)/scripts/build-packages.sh $(*)-$(ARCH)