Created
April 19, 2016 15:12
-
-
Save otaviosoares/4854e8e27ab3cf772f77bbe9750eaf3b to your computer and use it in GitHub Desktop.
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
box: nodesource/trusty:4.3.0 | |
build: | |
steps: | |
- script: | |
name: set env vars | |
code: export NODE_ENV=test | |
- npm-install | |
- script: | |
name: install test deps globally | |
code: npm install -g tape xo | |
- npm-test | |
- script: | |
name: create kube-controller.yaml | |
code: ./specs/create_kube_controller.yaml.sh | |
- script: | |
name: copy files | |
code: | | |
cp $(which node) "$WERCKER_OUTPUT_DIR" | |
cp -RL specs node_modules index.js package.json "$WERCKER_OUTPUT_DIR" | |
deploy: | |
box: nodesource/trusty:4.3.0 | |
steps: | |
dockerhub: | |
- internal/docker-push: | |
username: $DOCKER_USERNAME | |
password: $DOCKER_PASSWORD | |
cmd: ./node ./index.js | |
tag: $WERCKER_GIT_COMMIT | |
ports: "3000" | |
repository: otaviosoares/test | |
registry: https://registry.hub.docker.com | |
rolling-update: | |
- kubectl: | |
server: $KUBERNETES_MASTER | |
username: $KUBERNETES_USERNAME | |
password: $KUBERNETES_PASSWORD | |
insecure-skip-tls-verify: true | |
command: rolling-update test | |
image: otaviosoares/test:$WERCKER_GIT_COMMIT |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment