From e521f1fa55e1a97860a27a0894848f0e815d0f0a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20Ma=CC=88der?= Date: Fri, 29 Sep 2017 11:38:19 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=A6=20First=20attempt=20to=20push=20Do?= =?UTF-8?q?cker=20Images=20from=20Travis?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .travis.yml | 17 +++++++++++++++++ build-latest.sh | 7 +++++++ 2 files changed, 24 insertions(+) create mode 100755 build-latest.sh diff --git a/.travis.yml b/.travis.yml index 130416c..e8d5d65 100644 --- a/.travis.yml +++ b/.travis.yml @@ -17,6 +17,23 @@ script: after_script: - docker-compose -f docker-compose.test.yml down +before_deploy: + - docker login -u='$DOCKER_USERNAME' -p='$DOCKER_PASSWORD' + +deploy: + - provider: script + script: build.sh master --push + on: + branch: master + - provider: script + script: build.sh develop-2.2 --push + on: + branch: master + - provider: script + script: build-latest.sh + on: + branch: master + notifications: slack: secure: F3VsWcvU/XYyjGjU8ZAVGpREe7F1NjKq6LuMRzhQORbXUvanxDQtLzEe0Y5zm/6+gHkx6t8cX/v2PiCI+v46pkapYMUimd+QEOL1WxbUdnw2kQxcgw/R3wX34l2FHXbG3/a+TmH3euqbSCTIrPy9ufju948i+Q0E0u0fyInmozl8qOT23C4joQOpVAq7y+wHxTxsEg46ZzL2Ties+dmqjMsvHocv7mPI2IWzAWA8SJZxS82Amoapww++QjgEmoY+tMimLkdeXCRgeoj41UGHDg54rbEXh/PTaWiuzyzTr1WLmsGRScC57fDRivp3mSM37/MlNxsRj1z+j4zrvWFQgNfJ2yMjBHroc1jOX/uCY4dwbpSPqUCpc4idMGCGZFItgzTQ3lAPYAsom0C6n8C08Xk8EsNKWwXrDSd4ZUhIwptkNPCFK+kXbLFsMzSApnaBYW0T+wba57nZdiWjOPYmvJr49MDm5NHv2KaRBX2gpw7t7ZLhTgwGEWcZvcDebiLneXcXY5hZ7v2NHJkx/2x1yNXo85xZDy0wK1FGoOOHwPhvqOB+pcQZ/pUOSPTKqGw5l/CexoRm1shFsK+19FnSgimqTHjcuCo4lFW3JlEvlFhtfFXIte2Wjp1ALZgTrSq8zSD5rRxYCUKmM7b3EJwdaIgbvKWPdS4sCXlXU1bHx0g= diff --git a/build-latest.sh b/build-latest.sh new file mode 100755 index 0000000..308d887 --- /dev/null +++ b/build-latest.sh @@ -0,0 +1,7 @@ +#!/bin/bash + +URL_LATEST=https://api.github.com/repos/digitalocean/netbox/releases/latest + +VERSION=$(curl "${URL_LATEST}" | jq -r ".tag_name") + +./build.sh "${VERSION}" --push