Skip to content

Commit

Permalink
[infra] Update nncc build docker script (Samsung#7537)
Browse files Browse the repository at this point in the history
This commit makes docker_build_nncc script receive version argument.

ONE-DCO-1.0-Signed-off-by: seongwoo <[email protected]>
  • Loading branch information
mhs4670go authored Aug 20, 2021
1 parent 5033d2a commit bfa2f5b
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions infra/scripts/docker_build_nncc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

[[ "${BASH_SOURCE[0]}" != "${0}" ]] && echo "Please don't source ${BASH_SOURCE[0]}, execute it" && return

unset RELEASE_VERSION
# TODO need more better argument parsing
RELEASE_VERSION="$1"

CURRENT_PATH="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
ROOT_PATH="$CURRENT_PATH/../../"

Expand Down Expand Up @@ -61,9 +65,11 @@ tar -zcf ${ARCHIVE_PATH}/nncc-package.tar.gz -C ${NNCC_INSTALL_PREFIX} \
--exclude test --exclude tflchef* --exclude circle-tensordump --exclude circledump ./
tar -zcf ${ARCHIVE_PATH}/nncc-test-package.tar.gz -C ${NNCC_INSTALL_PREFIX} ./test

./nncc docker-run /bin/bash -c \
'dch -v $(dpkg-parsechangelog --show-field Version)-$(date "+%y%m%d%H") "nightly release" -D $(lsb_release --short --codename)'
./nncc docker-run dch -r ''
if [ -z ${RELEASE_VERSION} ] || [ ${RELEASE_VERSION} == "nightly" ]; then
./nncc docker-run /bin/bash -c \
'dch -v $(dpkg-parsechangelog --show-field Version)~$(date "+%y%m%d%H") "nightly release" -D $(lsb_release --short --codename)'
./nncc docker-run dch -r ''
fi

./nncc docker-run debuild --preserve-env --no-lintian -us -uc \
-b --buildinfo-option=-ubuild --changes-option=-ubuild
Expand Down

0 comments on commit bfa2f5b

Please sign in to comment.