Created
December 2, 2015 16:57
-
-
Save mies/bf40ab216421c0003ea6 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: node | |
dev: | |
steps: | |
- npm-install | |
- internal/watch: | |
code: node app.js | |
reload: true | |
# Build definition | |
build: | |
# The steps that will be executed on build | |
steps: | |
- script: | |
code: export NODE_ENV='testing' | |
# A step that executes `npm install` command | |
- npm-install | |
# A step that executes `npm test` command | |
- npm-test | |
# A custom script step, name value is used in the UI | |
# and the code value contains the command that get executed | |
- script: | |
name: echo nodejs information | |
code: | | |
echo "node version $(node -v) running" | |
echo "npm version $(npm -v) running" | |
deploy: | |
steps: | |
- internal/docker-push: | |
username: $USERNAME | |
password: $PASSWORD | |
cmd: node /pipeline/source/app.js | |
ports: "5000" | |
tag: latest | |
repository: mies/node-push | |
registry: https://registry.hub.docker.com |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment