Skip to content
This repository has been archived by the owner on May 7, 2021. It is now read-only.

Commit

Permalink
chore(build): move location of checkout
Browse files Browse the repository at this point in the history
  • Loading branch information
pmuir committed Feb 25, 2017
1 parent 0e0060d commit 691cb84
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions cico_build_deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ service docker start
docker build -t ngx-fabric8-wit-builder -f Dockerfile.builder .
mkdir -p dist && docker run --detach=true --name=ngx-fabric8-wit-builder -e "FABRIC8_WIT_API_URL=http://api.openshift.io/api/" -e JENKINS_URL -e GIT_BRANCH -e "CI=true" -e GH_TOKEN -e NPM_TOKEN -t -v $(pwd)/dist:/dist:Z ngx-fabric8-wit-builder

# In order to run semantic-release we need a non detached HEAD, see https://github.com/semantic-release/semantic-release/issues/329
docker exec ngx-fabric8-wit-builder git tag
docker exec ngx-fabric8-wit-builder git checkout master

# Build almigty-ui
docker exec ngx-fabric8-wit-builder npm install

Expand All @@ -45,9 +49,6 @@ docker exec ngx-fabric8-wit-builder ./run_functional_tests.sh
if [ $? -eq 0 ]; then
echo 'CICO: functional tests OK'
# Publish to npm
# In order to run semantic-release we need a non detached HEAD, see https://github.com/semantic-release/semantic-release/issues/329
docker exec ngx-fabric8-wit-builder git fetch -t origin
docker exec ngx-fabric8-wit-builder git checkout master
docker exec ngx-fabric8-wit-builder npm -ddd run semantic-release
if [ $? -eq 0 ]; then
echo 'CICO: module pushed to npmjs.com'
Expand Down

0 comments on commit 691cb84

Please sign in to comment.