Skip to content

Commit

Permalink
fix(semantic-release): resolve semantic release issues (#653)
Browse files Browse the repository at this point in the history
* run the semantic-release script inside the container

* pass env to docker-compose and reuse already built node image for tag

* more changes to travis and the build script

* remove path directive from the tag command

* fix(semantic-release): run semantic release in container and remove travis-deploy-once

* move DC_FILES back

* patch(travis): add no-ci flag as release runs in Docker container and not in travis

* patch: reuse prebuilt docker image

* patch: remove travis-deploy-once

* fix: adds line feed

* patch: clean up commented out commands
  • Loading branch information
WesleyCharlesBlake authored Oct 25, 2018
1 parent 67c7684 commit 13db171
Show file tree
Hide file tree
Showing 5 changed files with 59 additions and 3,083 deletions.
11 changes: 6 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ env:

install:
- DC_FILES="-f docker-compose.yml -f docker-compose.ci.yml"
- docker-compose $DC_FILES build
- docker images
- docker-compose $DC_FILES up -d
- sleep 10

Expand All @@ -40,6 +38,9 @@ deploy:
- bash ./scripts/docker-push.sh
on:
all_branches: true

after_deploy:
- npm run travis-deploy-once "npm run semantic-release"
- provider: script
skip_cleanup: true
script:
- docker-compose exec poet-node npx semantic-release --no-ci
on:
branch: master
2 changes: 2 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ services:
- MONGODB_PASSWORD=poetPass
- IPFS_URL=http://ipfs:5001
- INTEGRATION_TEST_NODE_URL=http://poet-node:18080
- GH_TOKEN=${GH_TOKEN}
- NPM_TOKEN=${NPM_TOKEN}
links:
- mongo
- rabbit
Expand Down
Loading

0 comments on commit 13db171

Please sign in to comment.