Skip to content

Commit

Permalink
support building deprecated c8y-configuration-plugin
Browse files Browse the repository at this point in the history
Signed-off-by: Reuben Miller <[email protected]>
  • Loading branch information
reubenmiller committed Oct 26, 2023
1 parent 4eb8236 commit 916cf49
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
6 changes: 4 additions & 2 deletions ci/build_scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ case "$ARCH" in
;;
esac

# Load the release package list as $RELEASE_PACKAGES and $TEST_PACKAGES
# Load the release package list as $RELEASE_PACKAGES, $DEPRECATED_PACKAGES and $TEST_PACKAGES
# shellcheck disable=SC1091
source ./ci/package_list.sh

Expand All @@ -190,7 +190,9 @@ if [ -d "target/$ARCH/debian" ]; then
rm -rf "target/$ARCH/debian"
fi

./ci/build_scripts/package.sh build "$ARCH" "${RELEASE_PACKAGES[@]}" --version "$GIT_SEMVER" --output "$OUTPUT_DIR"
# build/package both the release and deprecated packages
PACKAGES=( "${RELEASE_PACKAGES[@]}" "${DEPRECATED_PACKAGES[@]}" )
./ci/build_scripts/package.sh build "$ARCH" "${PACKAGES[@]}" --version "$GIT_SEMVER" --output "$OUTPUT_DIR"

if [ "$BUILD" = 1 ]; then
# Strip and build for test artifacts
Expand Down
8 changes: 8 additions & 0 deletions ci/package_list.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,14 @@ RELEASE_PACKAGES=(
)
export RELEASE_PACKAGES

# Deprecated packages are still built but not explicitly tested
# This allows users to still access the packages if needed, however
# it is only reserved for packages with a more public facing API
DEPRECATED_PACKAGES=(
c8y-configuration-plugin
)
export DEPRECATED_PACKAGES

TEST_PACKAGES=(
sawtooth-publisher
tedge-dummy-plugin
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ deb:
- c8y_configuration_plugin (<= 0.8.1)

contents:
# binary
- src: .build/c8y-configuration-plugin
dst: /usr/bin/

# service definitions
- src: ./configuration/init/systemd/c8y-configuration-plugin.service
dst: /lib/systemd/system/
Expand Down

0 comments on commit 916cf49

Please sign in to comment.