Skip to content
This repository has been archived by the owner on Jul 28, 2023. It is now read-only.

Commit

Permalink
Merge pull request #1 from chilanti/build-fix
Browse files Browse the repository at this point in the history
Integrating build fixes
  • Loading branch information
kylegc committed Oct 4, 2019
2 parents b7e99d3 + 335e028 commit 9463fe7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ deploy:
branch: master
tags: true
provider: script
script: bash ./build.sh $CLI_VERSION $TRAVIS_TAG
script: bash ./build.sh $CLI_VERSION $TRAVIS_TAG $CONTROLLER_VERSION
7 changes: 4 additions & 3 deletions build.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
#!/bin/bash
#Takes two parms:
#Takes three parms:
#CLI_VERSION
#TRAVIS_TAG
#CONTROLLER_VERSION
set -e
export CONTROLLER_BASE_URL := https://github.com/appsody/controller/releases/download/$CONTROLLER_VERSION
export CONTROLLER_BASE_URL=https://github.com/appsody/controller/releases/download/$3
echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
docker build -t $DOCKER_ORG/appsody-k8s:$2 -t $DOCKER_ORG/appsody-k8s:latest --build-arg CLI_VERSION=$1 --build-arg CONTROLLER_BASE_URL=${CONTROLLER_BASE_URL}.
docker build -t $DOCKER_ORG/appsody-k8s:$2 -t $DOCKER_ORG/appsody-k8s:latest --build-arg CLI_VERSION=$1 --build-arg CONTROLLER_BASE_URL=${CONTROLLER_BASE_URL} .
docker push $DOCKER_ORG/appsody-k8s
docker push $DOCKER_ORG/appsody-k8s:$2

0 comments on commit 9463fe7

Please sign in to comment.