Skip to content

Commit

Permalink
Travis and docker setup after migration (netdata#4247)
Browse files Browse the repository at this point in the history
* fix travis

* add misc vars

* info contact

* add build script pushing to old repo

* add two more variables
  • Loading branch information
paulfantom authored and ktsaou committed Sep 22, 2018
1 parent 381c217 commit 9dcf1c7
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -73,7 +73,7 @@ jobs:
- "netdata*.tar.*"
- "netdata*.gz.run*"
on:
repo: firehol/netdata
repo: netdata/netdata
tags: true

notifications:
Expand Down
9 changes: 9 additions & 0 deletions .travis/README.md
Original file line number Diff line number Diff line change
@@ -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
11 changes: 11 additions & 0 deletions docker/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 9dcf1c7

Please sign in to comment.