This repository has been archived by the owner on Dec 26, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathwercker.yml
100 lines (80 loc) · 2.33 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
box: node:10
release:
steps:
- script:
name: bump version
code: |
sh ./bin/bump-version.sh
- internal/docker-build:
image-name: my-image
build-args: "ARCHIVE_NAME=$GROWI_REPOS_GIT_COMMIT"
- script:
name: get tags to push
code: |
export TAGS_TO_PUSH=`bash ./bin/get-tags-to-push.sh`
- internal/docker-push:
repository: weseek/growi
image-name: my-image
tag: $TAGS_TO_PUSH
username: $DOCKERHUB_USERNAME
password: $DOCKERHUB_PASSWORD
after-steps:
- install-packages:
packages: ruby
- wantedly/pretty-slack-notify:
webhook_url: $SLACK_WEBHOOK_URL
notify_on: "failed"
channel: ci
- wantedly/pretty-slack-notify:
webhook_url: $SLACK_WEBHOOK_URL
notify_on: "passed"
passed_message: ":anchor: GROWI v($TAGS_TO_PUSH) has been released! -> https://hub.docker.com/r/weseek/growi/"
release-nocdn:
steps:
- script:
name: bump version
code: |
sh ./bin/bump-version.sh
- internal/docker-build:
image-name: my-image
context: nocdn
build-args: "ARCHIVE_NAME=$GROWI_REPOS_GIT_COMMIT"
- script:
name: get tags to push
code: |
export TAGS_TO_PUSH=`bash ./bin/get-tags-to-push.sh -s nocdn`
- internal/docker-push:
repository: weseek/growi
image-name: my-image
tag: $TAGS_TO_PUSH
username: $DOCKERHUB_USERNAME
password: $DOCKERHUB_PASSWORD
after-steps:
- install-packages:
packages: ruby
- wantedly/pretty-slack-notify:
webhook_url: $SLACK_WEBHOOK_URL
notify_on: "failed"
channel: ci
- wantedly/pretty-slack-notify:
webhook_url: $SLACK_WEBHOOK_URL
notify_on: "passed"
passed_message: ":anchor: GROWI v($TAGS_TO_PUSH) has been released! -> https://hub.docker.com/r/weseek/growi/"
addtag:
steps:
- script:
name: git commit
code: |
sh ./bin/init-git.sh
git commit -am ":+1: version"
# push HEAD to $WERCKER_GIT_BRANCH
- script:
name: push to github
code: |
git push -u origin HEAD:$WERCKER_GIT_BRANCH
TARGET_COMMITISH=`git rev-parse HEAD`
# create github release on HEAD
- github-create-release:
token: $GITHUB_TOKEN
tag: v$RELEASE_VERSION
target-commitish: $TARGET_COMMITISH