From a13ad42828553776ed1a4de2fae45187cd2a1b29 Mon Sep 17 00:00:00 2001 From: Laurent Goderre Date: Tue, 27 Mar 2018 10:27:13 -0400 Subject: [PATCH] Added a deploy stage to automate the deployment to the official images repo --- .travis.yml | 9 +++++++++ travis.yml.template | 9 +++++++++ 2 files changed, 18 insertions(+) diff --git a/.travis.yml b/.travis.yml index 5dc73074..3a733cf4 100644 --- a/.travis.yml +++ b/.travis.yml @@ -14,6 +14,12 @@ addons: script: ./test-build.sh $NODE_VERSION $VARIANT +stages: + - Test + - Build + - name: Deploy + if: branch = master + jobs: include: - stage: Test @@ -37,6 +43,9 @@ jobs: packages: - shellcheck + - stage: Deploy + script: ./generate-stackbrew-library.sh + # Docker Build # - stage: Build env: diff --git a/travis.yml.template b/travis.yml.template index 4aecb7a5..394fce79 100644 --- a/travis.yml.template +++ b/travis.yml.template @@ -12,6 +12,12 @@ addons: script: ./test-build.sh $NODE_VERSION $VARIANT +stages: + - Test + - Build + - name: Deploy + if: branch = master + jobs: include: - stage: Test @@ -35,4 +41,7 @@ jobs: packages: - shellcheck + - stage: Deploy + script: ./generate-stackbrew-library.sh + # Docker Build #