diff options
author | Paweł Krupa <pawel@krupa.net.pl> | 2019-01-08 14:50:44 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-01-08 14:50:44 +0100 |
commit | 0d9835386efeab6854595c7934d25329aa80e3cc (patch) | |
tree | 55971fbc67ffb0387b71967f5cbf3f4280a021ea /.travis/create_artifacts.sh | |
parent | 95fd0723d4220c8f35b60d0d7064e88539e1df46 (diff) |
better artifacts uploading (#5130)
Diffstat (limited to '.travis/create_artifacts.sh')
-rwxr-xr-x | .travis/create_artifacts.sh | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/.travis/create_artifacts.sh b/.travis/create_artifacts.sh index 22d8184687..90fb082937 100755 --- a/.travis/create_artifacts.sh +++ b/.travis/create_artifacts.sh @@ -17,10 +17,17 @@ echo "--- Create self-extractor ---" ./packaging/makeself/build-x86_64-static.sh # Needed fo GCS -echo "--- Copy artifacts to bin ---" -mkdir upload -cp ./*.tar.gz ./*.gz.run upload/ +echo "--- Copy artifacts to separate directory ---" +mkdir -p artifacts +BASENAME="netdata-$(git describe)" +mv "${BASENAME}".* artifacts/ +cd artifacts +ln -s "${BASENAME}.tar.gz" netdata-latest.tar.gz +ln -s "${BASENAME}.gz.run" netdata-latest.gz.run +sha256sum -b ./* >"sha256sums.txt" +cd ../ +# TODO(paulfantom): remove this section after releasing v1.12 and always use "artifacts" directory echo "--- Create checksums ---" GIT_TAG=$(git tag --points-at) if [ "${GIT_TAG}" != "" ]; then |