-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathwercker.yml
39 lines (31 loc) · 877 Bytes
/
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
35
36
37
38
39
box: node:7.8.0
build:
steps:
- script:
name: create tag
code: |
export BUILD_TAG=${WERCKER_GIT_COMMIT:0:9}
- script:
name: echo nodejs information
code: |
echo "node version $(node -v) running"
echo "npm version $(npm -v) running"
- npm-install
- script:
name: lint
code: npm run lint
- script:
name: write .build-tag file
code: |
echo $BUILD_TAG > .build-tag
- npm-test
- internal/docker-push:
username: $DOCKER_REGISTRY_USERNAME
password: $DOCKER_REGISTRY_PASSWORD
repository: turistforeningen/turadmin
registry: https://registry.hub.docker.com/v2
tag: $BUILD_TAG
working-dir: /pipeline/source
after-steps:
- turistforeningen/slack-notifier:
url: $SLACK_WEBHOOK_URL