diff options
author | Pavlos Emm. Katsoulakis <paul@netdata.rocks> | 2019-05-22 16:54:19 +0300 |
---|---|---|
committer | Pavlos Emm. Katsoulakis <paul@netdata.rocks> | 2019-05-22 16:54:19 +0300 |
commit | d8b3b7771b7b4312b0556c1596a4730fed702d61 (patch) | |
tree | 9bd215c5c5ce21273f2c9dd7605703e8173a7b75 /packaging | |
parent | b411e51b5cdd7c100af4a071d39f9549e3b4f325 (diff) |
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
Diffstat (limited to 'packaging')
-rwxr-xr-x | packaging/docker/publish.sh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/packaging/docker/publish.sh b/packaging/docker/publish.sh index 948787b0bf..fd1883afb7 100755 --- a/packaging/docker/publish.sh +++ b/packaging/docker/publish.sh @@ -21,6 +21,8 @@ ARCH_MAP=(["i386"]="386" ["amd64"]="amd64" ["armhf"]="arm" ["aarch64"]="arm64") DEVEL_ARCHS=(amd64) ARCHS="${!ARCH_MAP[@]}" DOCKER_CMD="docker --config ${WORKDIR}" +GIT_MAIL=${GIT_MAIL:-"bot@netdata.cloud"} +GIT_USER=${GIT_USER:-"netdatabot"} if [ -z ${REPOSITORY} ]; then REPOSITORY="${TRAVIS_REPO_SLUG}" @@ -37,6 +39,10 @@ if [ ! -z ${DEVEL+x} ]; then declare -a ARCHS=(${DEVEL_ARCHS[@]}) fi +echo "Syncing repository with latest changes (We may have updated with package versions)" +git checkout master +git pull + # Ensure there is a version, the most appropriate one if [ "${VERSION}" == "" ]; then VERSION=$(git tag --points-at) |