Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
setup docker, drone, rancher
- Loading branch information
Showing
8 changed files
with
77 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
eyJhbGciOiJSU0EtT0FFUCIsImVuYyI6IkExMjhHQ00ifQ.H1l-q1EY6YIpTwF8UKa0UMPH3OfpKjN8rYz4VFmnZIwS6vZzW7FdoehfLMzejg0GC1UUDG6pWRtD9pg3lxnTCU8UNBqLtqpltBV2-0r5grdZbiRV4plWoO_Rdg_MaQ4f4frbS2PnRDsIs_8sKfIbbdhx1yWlCcXLXKm1khjhn3lNdsnZvNHkXlvEZ3HsQ4JMAbiNWP2uv0wkjlW_tYwQN9ig4FSxo0tGeXPwQ4TKe8pMcSKP6hLjyC69FDPDw0uWRWl73V87bFjEGRJqpsXqXQwgohGDVf0GO9qkZQ9VdgkQH6ccX0xlF-vKOx78ULm9AD-WhIWJNudz5UZUAixjrQ.PP6QusLM9yecRjWl.KOmlxYKRzikrE5VBI_AsF33DJasFbLDhvXGf0ffj9plbLodK7tHJphKj93c4IsAsWJ9JGlCf3h1Rpm5qOWQWzcovnOP7F7F0DOvVTVczI0gsgZ8RJpkp9BUAVGubZEkM9CpnozJ4hTBx3OqeARlcU7ksVOWcyiQt3aBPTG-VxPhJI5s8NHJurjlO2dV8ILBNEbyoGunoQ3x3IZA1wu-18ZTxik1FXudy2uxDWcbfrwl_1t-mg8dFh7QSO0gngC1nOaiOojvXQjiLmkC-XRSHzNOKm-evoPt0v_OxS9AL_1XX7b2E5qyP3HIafGQHQAXyx9Smz_0u5jSbEL1fMdCWhhvwJhNckN1cR-XJLXzd3_j2IYJOC0DlooojuhrjXHJ_Es64_QALuPdjTmmPUX51cIfOXHR12SrZ5AKR6jwD3GAhXhqgibDjCLgsPBvo5lgLvnbrvsQQVJ2LeLc5ZjkhjzNKWzAmq2ZNLlug1ewXsWZz5ApI7AdD6WGk5SrPFclMFMMCfshAXk83cXnfRK6DFdorqtKZdM2fc006aJxUWpyTYRNx3Myd04fV2_cDoQ.wxLLpkbPMiLJdAT3neW_iQ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
build: | ||
css: | ||
image: mhart/alpine-node:4 | ||
commands: | ||
- make install | ||
- make build-sass | ||
js: | ||
image: pandeiro/lein | ||
commands: | ||
- make install | ||
- make build-cljs | ||
|
||
notify: | ||
slack: | ||
webhook_url: $$SLACK_WEBHOOK_URL | ||
channel: ulysses | ||
username: drone | ||
|
||
# tag image with "latest" or "develop", and build number | ||
publish: | ||
docker: | ||
file: Dockerfile | ||
username: $$DOCKER_USER | ||
password: $$DOCKER_PASS | ||
email: $$DOCKER_EMAIL | ||
repo: uconncore/ulysses-front | ||
tag: latest | ||
when: | ||
branch: master | ||
docker: | ||
file: Dockerfile | ||
username: $$DOCKER_USER | ||
password: $$DOCKER_PASS | ||
email: $$DOCKER_EMAIL | ||
repo: uconncore/ulysses-front | ||
tag: develop | ||
when: | ||
branch: develop | ||
|
||
# deploy new image to rancher (using ulysses stack) | ||
deploy: | ||
rancher: | ||
url: $$RANCHER_URL | ||
access_key: $$RANCHER_ACCESS_KEY | ||
secret_key: $$RANCHER_SECRET_KEY | ||
service: ulysses/front-staging | ||
docker_image: uconncore/ulysses-front:develop | ||
when: | ||
branch: develop | ||
rancher: | ||
url: $$RANCHER_URL | ||
access_key: $$RANCHER_ACCESS_KEY | ||
secret_key: $$RANCHER_SECRET_KEY | ||
service: ulysses/front-prod | ||
docker_image: uconncore/ulysses-front:latest | ||
when: | ||
branch: master |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,3 +7,4 @@ out | |
/.sass-cache | ||
/node_modules | ||
/.lein-repl-history | ||
/secrets.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
FROM kyma/docker-nginx | ||
ADD resources/public /var/www | ||
CMD 'nginx' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
front-staging: | ||
image: uconncore/ulysses-front:develop | ||
|
||
front-prod: | ||
image: uconncore/ulysses-front:latest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters