@cryptotaxi247 / netdata-1 / commits / d8b3b7771

netdata/packaging/ci: pull all git changes, prior to publishing

The way we do things within travis, we commit the packaging details withn a travis workflow. This way when Travis goes to the next step, if we want to see that commit we need to pull. I noticed this during v1.15.0, publishing did not see the latest stuff and produced a nightly verion due to missing tag

Pavlos Emm. Katsoulakis committed May 22, 2019 at 16:54 UTC d8b3b7771b7b4312b0556c1596a4730fed702d61
1 file changed +6
packaging/docker/publish.sh
+6
@@ -21,6 +21,8 @@ ARCH_MAP=(["i386"]="386" ["amd64"]="amd64" ["armhf"]="arm" ["aarch64"]="arm64")
21 DEVEL_ARCHS=(amd64)
22 ARCHS="${!ARCH_MAP[@]}"
23 DOCKER_CMD="docker --config ${WORKDIR}"
24 +GIT_MAIL=${GIT_MAIL:-"bot@netdata.cloud"}
25 +GIT_USER=${GIT_USER:-"netdatabot"}
26
27 if [ -z ${REPOSITORY} ]; then
28 REPOSITORY="${TRAVIS_REPO_SLUG}"
@@ -37,6 +39,10 @@ if [ ! -z ${DEVEL+x} ]; then
39 declare -a ARCHS=(${DEVEL_ARCHS[@]})
40 fi
41
42 +echo "Syncing repository with latest changes (We may have updated with package versions)"
43 +git checkout master
44 +git pull
45 +
46 # Ensure there is a version, the most appropriate one
47 if [ "${VERSION}" == "" ]; then
48 VERSION=$(git tag --points-at)