-
Notifications
You must be signed in to change notification settings - Fork 0
/
wercker.yml
35 lines (34 loc) · 1.12 KB
/
wercker.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
build:
box: node:0.12.7-onbuild
steps:
- script:
name: echo nodejs information
code: |
echo "node version $(node -v) running"
echo "npm version $(npm -v) running"
echo $WERCKER_GIT_COMMIT
- npm-install
- script:
name: copy files to the pipeline
code: cp -R . "$WERCKER_OUTPUT_DIR"
deploy:
box: node:0.12.7-onbuild
steps:
- script:
name: copy
code: cp -R /pipeline/source/* /usr/src/app/
- internal/docker-push:
#username: $QUAY_USERNAME
username: $DOCKERHUB_USERNAME
#password: $QUAY_PASSWORD
password: $DOCKERHUB_PASSWORD
ports: "8080"
#repository: quay.io/mikemichel/wercker2sloppy
repository: $REPOSITORY
#registry: https://quay.io
tag: $WERCKER_GIT_COMMIT
cmd: npm start
- script:
name: deploy to sloppy
code: |
curl -H "Content-Type: application/json" -H "Authorization: Bearer $SLOPPYIO_TOKEN" -X PATCH -d '{"image": "'$REPOSITORY':'$WERCKER_GIT_COMMIT'"}' https://api.sloppy.io/v1/apps/todo/services/frontend/apps/node