Browse Source

copy artifacts to 'upload/' (#5036)

Paweł Krupa 6 years ago
parent
commit
f4fbf21363
3 changed files with 7 additions and 2 deletions
  1. 1 0
      .gitignore
  2. 1 2
      .travis.yml
  3. 5 0
      .travis/create_artifacts.sh

+ 1 - 0
.gitignore

@@ -38,6 +38,7 @@ sha256sums.txt
 # netdata binaries
 netdata
 !netdata/
+upload/
 
 apps.plugin
 !apps.plugin/

+ 1 - 2
.travis.yml

@@ -75,8 +75,7 @@ jobs:
       credentials: .travis/gcs-credentials.json
       bucket: "netdata-nightlies"
       skip_cleanup: true
-      file_glob: true
-      file: "netdata*.tar.gz"
+      local_dir: "upload"
   - name: changelog generation
     script: ".travis/generate_changelog.sh"
     env: COMMIT_AND_PUSH=1

+ 5 - 0
.travis/create_artifacts.sh

@@ -16,6 +16,11 @@ make dist
 echo "--- Create self-extractor ---"
 ./makeself/build-x86_64-static.sh
 
+# Needed fo GCS
+echo "--- Copy artifacts to bin ---"
+mkdir upload
+cp ./*.tar.gz ./*.gz.run upload/
+
 echo "--- Create checksums ---"
 GIT_TAG=$(git tag --points-at)
 if [ "${GIT_TAG}" != "" ]; then