Skip to content

Commit

Permalink
Merge pull request #11 from instedd/dockerhub
Browse files Browse the repository at this point in the history
Added push to docker scripts
  • Loading branch information
Hugo David Farji authored Jul 10, 2019
2 parents 0c2b9f2 + 9b8da6d commit e741805
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,9 @@ script:
- bundle exec rspec
notifications:
email: false

deploy:
provider: script
script: "./build.sh"
on:
all_branches: true
15 changes: 15 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit e741805

Please sign in to comment.