diff --git a/.travis.yml b/.travis.yml index 07a3248..5c4d279 100644 --- a/.travis.yml +++ b/.travis.yml @@ -10,3 +10,9 @@ script: - bundle exec rspec notifications: email: false + +deploy: + provider: script + script: "./build.sh" + on: + all_branches: true \ No newline at end of file diff --git a/build.sh b/build.sh new file mode 100755 index 0000000..0545d1a --- /dev/null +++ b/build.sh @@ -0,0 +1,15 @@ +#!/bin/bash +set -eo pipefail + +# This will load the script from this repository. Make sure to point to a specific commit so the build continues to work +# event if breaking changes are introduced in this repository +source <(curl -s https://raw.githubusercontent.com/manastech/ci-docker-builder/3fee09cce08175cfd76a246dd95112686939fb9c/build.sh) + +# Prepare the build +dockerSetup + +# Write a VERSION file for the footer +echo $VERSION > VERSION + +# Build and push the Docker image +dockerBuildAndPush \ No newline at end of file