diff options
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | .travis.yml | 2 | ||||
-rwxr-xr-x | .travis/create_artifacts.sh | 13 |
3 files changed, 12 insertions, 4 deletions
diff --git a/.gitignore b/.gitignore index 83b8dbaafe..f811fce280 100644 --- a/.gitignore +++ b/.gitignore @@ -39,6 +39,7 @@ sha256sums.txt netdata !netdata/ upload/ +artifacts/ apps.plugin !apps.plugin/ diff --git a/.travis.yml b/.travis.yml index 0fcb569c01..814fa81ccd 100644 --- a/.travis.yml +++ b/.travis.yml @@ -73,7 +73,7 @@ jobs: credentials: .travis/gcs-credentials.json bucket: "netdata-nightlies" skip_cleanup: true - local_dir: "upload" + local_dir: "artifacts" notifications: webhooks: https://app.fossa.io/hooks/travisci 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 |