-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathwercker.yml
More file actions
48 lines (43 loc) · 1.13 KB
/
wercker.yml
File metadata and controls
48 lines (43 loc) · 1.13 KB
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
40
41
42
43
44
45
46
47
48
box:
id: node:latest
ports:
- 3000
build:
steps:
- npm-install
- script:
name: echo nodejs information
code:
echo "node version $(node -v) running"
echo "npm version $(npm -v) running"
push-release:
steps:
- internal/docker-push:
username: $DOCKER_USERNAME
password: $DOCKER_PASSWORD
repository: $DOCKER_REPO
registry: $DOCKER_REGISTRY
tag: $WERCKER_GIT_COMMIT
working-dir: /pipeline/source
ports: $PORT
cmd: npm start
after-steps:
- slack-notifier:
url: https://hooks.slack.com/services/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
channel: general
username: Heejong
deploy-to-cluster:
box:
id: alpine
cmd: /bin/sh
steps:
- bash-template
- script:
name: "Visualise Kubernetes config"
code: cat ./*.yaml
- kubectl:
name: apply new deployment
server: $KUBERNETES_MASTER
token: $KUBERNETES_TOKEN
insecure-skip-tls-verify: true
command: apply -f ./webapp-dep.yaml --namespace $NS