summaryrefslogtreecommitdiffstats
path: root/.travis/generate_changelog_and_tag_release.sh
diff options
context:
space:
mode:
authorPaul Emm. Katsoulakis <34388743+paulkatsoulakis@users.noreply.github.com>2019-05-03 15:24:45 +0300
committerGitHub <noreply@github.com>2019-05-03 15:24:45 +0300
commit7f3c5f6c0123434c5bc500512c4ee139d7342dbd (patch)
treed2ca85cbc1dad486b4f73bcfd177dd7fcd08dbf6 /.travis/generate_changelog_and_tag_release.sh
parent42f7d7acb7e43b82cbafa18c167b9b7c778d0694 (diff)
netdata/packaging/ci: Create manual nightly deployment tool (#5899)
* netdata/packaging/ci: Create manual nightly deployment tool 1. Alter docker tools to shebang with /usr/bin/env, safer to detect the right BASH (>4.0) 2. Generate script packaging/manual_nightly_deployment.sh, that runs only from TLD of netdata GIT and provides the means to deploy to docker and GCS the latest nightly build of netdata. Only option passed to the script is whether you want to deploy in docker, gcs or both. Note: for GCS deployment the user has to define which bucket to update. Note2: this tool has a hard dependency on gsutil to be properly setup on the development environment * netdata/packaging/ci: Do not change global config for mail and user Since we are now starting to use these scripts externally, we need to make sure we dont mess developer config. It seems that we are touching global config, in an attempt to modify a single commit message. Alter this and instead use the --author option for the single commit that we care about instead of altering the universe Cheers
Diffstat (limited to '.travis/generate_changelog_and_tag_release.sh')
-rwxr-xr-x.travis/generate_changelog_and_tag_release.sh4
1 files changed, 1 insertions, 3 deletions
diff --git a/.travis/generate_changelog_and_tag_release.sh b/.travis/generate_changelog_and_tag_release.sh
index 0f3d1bb5d0..fb155b2645 100755
--- a/.travis/generate_changelog_and_tag_release.sh
+++ b/.travis/generate_changelog_and_tag_release.sh
@@ -48,8 +48,6 @@ fi
echo "--- Initialize git configuration ---"
export GIT_MAIL="bot@netdata.cloud"
export GIT_USER="netdatabot"
-git config user.email "${GIT_MAIL}"
-git config user.name "${GIT_USER}"
git checkout master
git pull
@@ -62,7 +60,7 @@ echo "---- GENERATE CHANGELOG -----"
git add CHANGELOG.md
echo "---- COMMIT AND PUSH CHANGES ----"
-git commit -m "[ci skip] release $GIT_TAG"
+git commit -m "[ci skip] release $GIT_TAG" --author "${GIT_USER} <${GIT_MAIL}>"
git tag "$GIT_TAG" -a -m "Automatic tag generation for travis build no. $TRAVIS_BUILD_NUMBER"
git push "https://${GITHUB_TOKEN}:@$(git config --get remote.origin.url | sed -e 's/^https:\/\///')"
git push "https://${GITHUB_TOKEN}:@$(git config --get remote.origin.url | sed -e 's/^https:\/\///')" --tags