Skip to content

Commit

Permalink
Configure heroku deployment (#149)
Browse files Browse the repository at this point in the history
* 137 better releases (#141)

* Automatic Github and Docker releases from Travis
* Improve documentation

* 137 better releases (#143)

* Fixes path. Fixes #137

* 137 better releases (#145)

Latest version is determined by latest tag, so if tagged before the release, it gets incremented twice #137

* Create travis release script. #137 (#147)

- Create travis release script. #137
- Cache docker images

* Use the Docker file to configure heroku. #122 (#148)

* add heroku web app config file - Procfile

* deploy with docker

* add echo to dockerfile

* add procfile, update readme.

* clean up dockerfile.
  • Loading branch information
imjul1an authored and artdaw committed Dec 18, 2018
1 parent ad7a688 commit 10320d9
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 3 deletions.
12 changes: 10 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
sudo: required
dist: trusty

language: go

cache:
directories:
- $HOME/docker

services:
- docker

branches:
only:
- master
Expand All @@ -15,14 +24,13 @@ env:

script:
- docker run -t -v $(pwd):$PROJECT_DIR skrop/skrop-build sh -c "cd $PROJECT_DIR && ./.travis/test-with-coverage.sh"
- ./.travis/git-tag.sh

after_success:
- bash <(curl -s https://codecov.io/bash)

deploy:
- provider: script
script: ./docker/docker-release.sh
script: ./.travis/release.sh
on:
repo: zalando-stups/skrop
branch: master
Expand Down
5 changes: 5 additions & 0 deletions .travis/release.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/usr/bin/env bash

./docker/docker-release.sh

./.travis/git-tag.sh
2 changes: 1 addition & 1 deletion heroku.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
build:
docker:
web: Dockerfile
web: docker/Dockerfile
1 change: 1 addition & 0 deletions sandbox/Procfile
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
web: npm run build && npm start
8 changes: 8 additions & 0 deletions sandbox/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,11 @@ npm run build
```

Now you should see application running at `http://localhost:3000`.

## Deploy website

Deploy to heroku

```bash
git subtree push --prefix sandbox heroku master
```
1 change: 1 addition & 0 deletions sandbox/_Procfile
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
web: npm run build && npm start

0 comments on commit 10320d9

Please sign in to comment.