Skip to content

Commit

Permalink
build.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
canthefason committed Feb 22, 2018
1 parent ade93d4 commit 613ca9f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
6 changes: 1 addition & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,4 @@ env:
matrix:
fast_finish: true

script: |
GO_VERSION=$(go version | awk 'print $3')
docker build -f Dockerfiles/Dockerfile."$GO_VERSION" -t canthefason/go-watcher:$WATCHER_VERSION-$GO_VERSION .
docker push canthefason/go-watcher:$WATCHER_VERSION-$GO_VERSION
script: ./build.sh
6 changes: 6 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash
GO_VERSION=$(go version | awk '{print $3}')

/bin/bash -c "docker build -f Dockerfiles/Dockerfile.$GO_VERSION" -t "canthefason/go-watcher:$WATCHER_VERSION-$GO_VERSION" .

docker push canthefason/go-watcher:$WATCHER_VERSION-$GO_VERSION

0 comments on commit 613ca9f

Please sign in to comment.