summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaweł Krupa <pawel@krupa.net.pl>2018-09-22 13:22:06 +0200
committerCosta Tsaousis <costa@tsaousis.gr>2018-09-22 14:22:06 +0300
commit9dcf1c772fdeb828c5e576b665419d9db6219b73 (patch)
tree93b17b9a69ff7536d0e95f368c4ab167097a75e0
parent381c2174d0d2dc36dcbd05b4d8f17620f00112ff (diff)
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
-rw-r--r--.travis.yml4
-rw-r--r--.travis/README.md9
-rwxr-xr-xdocker/build.sh11
3 files changed, 22 insertions, 2 deletions
diff --git a/.travis.yml b/.travis.yml
index 7c720cd35a..65afa40d22 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -58,7 +58,7 @@ jobs:
- stage: "release"
name: "Docker"
script: docker/build.sh
- env: REPOSITORY="firehol/netdata"
+ env: REPOSITORY="netdata/netdata"
- name: "GitHub"
install: sudo apt-get install -y gnupg libcap2-bin zlib1g-dev uuid-dev fakeroot
script: ./.travis/create_artifacts.sh
@@ -73,7 +73,7 @@ jobs:
- "netdata*.tar.*"
- "netdata*.gz.run*"
on:
- repo: firehol/netdata
+ repo: netdata/netdata
tags: true
notifications:
diff --git a/.travis/README.md b/.travis/README.md
new file mode 100644
index 0000000000..0ee1e80be9
--- /dev/null
+++ b/.travis/README.md
@@ -0,0 +1,9 @@
+# Variables needed by travis
+
+- GH_TOKEN - GitHub token with push access to repository
+- DOCKER_USERNAME - Username (netdatabot) with write access to docker hub repository
+- DOCKER_PASSWORD - Password to docker hub
+- encrypted_decb6f6387c4_key - Something to do with package releasing (need more info from @philwhineray)
+- encrypted_decb6f6387c4_iv - Something to do with package releasing (need more info from @philwhineray)
+- OLD_DOCKER_USERNAME - Username used to push images to firehol/netdata # TODO: remove after deprecating that repo
+- OLD_DOCKER_PASSWORD - Password used to push images to firehol/netdata # TODO: remove after deprecating that repo
diff --git a/docker/build.sh b/docker/build.sh
index b0789783bf..20e396a6c4 100755
--- a/docker/build.sh
+++ b/docker/build.sh
@@ -36,3 +36,14 @@ for ARCH in amd64 i386 armhf aarch64; do
docker push "${REPOSITORY}:${ARCH}${VERSION}"
done
docker push "${REPOSITORY}:latest"
+
+# TODO: Remove it after we decide to deprecate firehol/netdata docker repo
+if [ "$REPOSITORY" != "netdata" ]; then
+ echo "$OLD_DOCKER_PASSWORD" | docker login -u "$OLD_DOCKER_USERNAME" --password-stdin
+ for ARCH in amd64 i386 armhf aarch64; do
+ docker tag ${REPOSITORY}:${ARCH}${VERSION} firehol/netdata:${ARCH}${VERSION}
+ docker push "firehol/netdata:${ARCH}${VERSION}"
+ done
+ docker tag "${REPOSITORY}:latest"
+ docker push "firehol/netdata:latest"
+fi