Skip to content

Instantly share code, notes, and snippets.

@mies
Created December 2, 2015 16:57
Show Gist options
  • Save mies/bf40ab216421c0003ea6 to your computer and use it in GitHub Desktop.
Save mies/bf40ab216421c0003ea6 to your computer and use it in GitHub Desktop.
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