@cryptotaxi247 / netdata-1 / commits / 9dcf1c772

Travis and docker setup after migration (#4247)

* fix travis * add misc vars * info contact * add build script pushing to old repo * add two more variables

Paweł Krupa committed Sep 22, 2018 at 13:22 UTC 9dcf1c772fdeb828c5e576b665419d9db6219b73
3 files changed +22 -2
.travis.yml
+2 -2
@@ -58,7 +58,7 @@ jobs:
58 - stage: "release"
59 name: "Docker"
60 script: docker/build.sh
61 - env: REPOSITORY="firehol/netdata"
61 + env: REPOSITORY="netdata/netdata"
62 - name: "GitHub"
63 install: sudo apt-get install -y gnupg libcap2-bin zlib1g-dev uuid-dev fakeroot
64 script: ./.travis/create_artifacts.sh
@@ -73,7 +73,7 @@ jobs:
73 - "netdata*.tar.*"
74 - "netdata*.gz.run*"
75 on:
76 - repo: firehol/netdata
76 + repo: netdata/netdata
77 tags: true
78
79 notifications:
.travis/README.md new
+9
@@ -0,0 +1,9 @@
1 +# Variables needed by travis
2 +
3 +- GH_TOKEN - GitHub token with push access to repository
4 +- DOCKER_USERNAME - Username (netdatabot) with write access to docker hub repository
5 +- DOCKER_PASSWORD - Password to docker hub
6 +- encrypted_decb6f6387c4_key - Something to do with package releasing (need more info from @philwhineray)
7 +- encrypted_decb6f6387c4_iv - Something to do with package releasing (need more info from @philwhineray)
8 +- OLD_DOCKER_USERNAME - Username used to push images to firehol/netdata # TODO: remove after deprecating that repo
9 +- OLD_DOCKER_PASSWORD - Password used to push images to firehol/netdata # TODO: remove after deprecating that repo
docker/build.sh
+11
@@ -36,3 +36,14 @@ for ARCH in amd64 i386 armhf aarch64; do
36 docker push "${REPOSITORY}:${ARCH}${VERSION}"
37 done
38 docker push "${REPOSITORY}:latest"
39 +
40 +# TODO: Remove it after we decide to deprecate firehol/netdata docker repo
41 +if [ "$REPOSITORY" != "netdata" ]; then
42 + echo "$OLD_DOCKER_PASSWORD" | docker login -u "$OLD_DOCKER_USERNAME" --password-stdin
43 + for ARCH in amd64 i386 armhf aarch64; do
44 + docker tag ${REPOSITORY}:${ARCH}${VERSION} firehol/netdata:${ARCH}${VERSION}
45 + docker push "firehol/netdata:${ARCH}${VERSION}"
46 + done
47 + docker tag "${REPOSITORY}:latest"
48 + docker push "firehol/netdata:latest"
49 +fi