@cryptotaxi247 / netdata-1 / commits / 0d9835386

better artifacts uploading (#5130)

Paweł Krupa committed Jan 8, 2019 at 14:50 UTC 0d9835386efeab6854595c7934d25329aa80e3cc
3 files changed +12 -4
.gitignore
+1
@@ -39,6 +39,7 @@ sha256sums.txt
39 netdata
40 !netdata/
41 upload/
42 +artifacts/
43
44 apps.plugin
45 !apps.plugin/
.travis.yml
+1 -1
@@ -73,7 +73,7 @@ jobs:
73 credentials: .travis/gcs-credentials.json
74 bucket: "netdata-nightlies"
75 skip_cleanup: true
76 - local_dir: "upload"
76 + local_dir: "artifacts"
77
78 notifications:
79 webhooks: https://app.fossa.io/hooks/travisci
.travis/create_artifacts.sh
+10 -3
@@ -17,10 +17,17 @@ echo "--- Create self-extractor ---"
17 ./packaging/makeself/build-x86_64-static.sh
18
19 # Needed fo GCS
20 -echo "--- Copy artifacts to bin ---"
21 -mkdir upload
22 -cp ./*.tar.gz ./*.gz.run upload/
20 +echo "--- Copy artifacts to separate directory ---"
21 +mkdir -p artifacts
22 +BASENAME="netdata-$(git describe)"
23 +mv "${BASENAME}".* artifacts/
24 +cd artifacts
25 +ln -s "${BASENAME}.tar.gz" netdata-latest.tar.gz
26 +ln -s "${BASENAME}.gz.run" netdata-latest.gz.run
27 +sha256sum -b ./* >"sha256sums.txt"
28 +cd ../
29
30 +# TODO(paulfantom): remove this section after releasing v1.12 and always use "artifacts" directory
31 echo "--- Create checksums ---"
32 GIT_TAG=$(git tag --points-at)
33 if [ "${GIT_TAG}" != "" ]; then