File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 66 "io/ioutil"
77 "os"
88 "regexp"
9- "strings"
109
1110 docopt "github.com/docopt/docopt-go"
1211)
@@ -58,13 +57,8 @@ Options:
5857 continue
5958 }
6059 }
61- // replace the first occurrence in source files
62- count := 1
63- if strings .HasSuffix (name , ".md" ) || strings .HasSuffix (name , ".rst" ) {
64- // replace all occurrences in docs
65- count = - 1
66- }
67- data = bytes .Replace (src , from , []byte (version ), count )
60+ // replace all occurrences in source and doc files
61+ data = bytes .Replace (src , from , []byte (version ), - 1 )
6862 f , err := os .Create (name )
6963 if err != nil {
7064 return onError (err )
Original file line number Diff line number Diff line change @@ -238,16 +238,21 @@ coreos:
238238 peer-election-timeout: 2000
239239 # heartbeat interval should ideally be 1/4 or 1/5 of peer election timeout
240240 peer-heartbeat-interval: 500
241+ units:
242+ - name: install-deisctl.service
243+ command: start
244+ content: |
245+ [Unit]
246+ Description=Install deisctl utility
247+
248+ [Service]
249+ Type=oneshot
250+ ExecStart=/usr/bin/sh -c 'curl -sSL --retry 5 --retry-delay 2 http://deis.io/deisctl/install.sh | sh -s 2.22.0'
241251write_files:
242252 - path: /etc/deis-release
243253 content: |
244- DEIS_RELEASE=2.22.0
245- - path: /etc/profile.d/nse-function.sh
246- permissions: '0755'
247- content: |
248- function nse() {
249- sudo nsenter --pid --uts --mount --ipc --net --target $(docker inspect --format="{{ .State.Pid }}" $1)
250- }
254+ DEIS_RELEASE=v2.22.0
255+ - path: /etc/motd
251256`
252257
253258var userdataAfter = `
@@ -264,16 +269,21 @@ coreos:
264269 peer-election-timeout: 2000
265270 # heartbeat interval should ideally be 1/4 or 1/5 of peer election timeout
266271 peer-heartbeat-interval: 500
272+ units:
273+ - name: install-deisctl.service
274+ command: start
275+ content: |
276+ [Unit]
277+ Description=Install deisctl utility
278+
279+ [Service]
280+ Type=oneshot
281+ ExecStart=/usr/bin/sh -c 'curl -sSL --retry 5 --retry-delay 2 http://deis.io/deisctl/install.sh | sh -s 2.22.1'
267282write_files:
268283 - path: /etc/deis-release
269284 content: |
270- DEIS_RELEASE=2.22.1
271- - path: /etc/profile.d/nse-function.sh
272- permissions: '0755'
273- content: |
274- function nse() {
275- sudo nsenter --pid --uts --mount --ipc --net --target $(docker inspect --format="{{ .State.Pid }}" $1)
276- }
285+ DEIS_RELEASE=v2.22.1
286+ - path: /etc/motd
277287`
278288
279289var rst = `
Original file line number Diff line number Diff line change @@ -50,11 +50,13 @@ deis repo
5050 * ``git checkout master && git pull ``
5151 * ``git tag vX.Y.Z ``
5252 * ``git push --tags origin vX.Y.Z ``
53+ - Trigger all deis-cli and deisctl builder jobs at ci.deis.io. When they finish, verify that
54+ the current binary installers are publicly downloadable from the opdemand S3 bucket.
55+ - Trigger the test-master job, supplying vX.Y.Z as the version
56+ - When test-master completes, double-check images at Docker Hub to verify tags are published
5357- Publish CLI to pypi.python.org
5458 - ``cd client && python setup.py sdist upload ``
5559 - use testpypi.python.org first to ensure there aren't any problems
56- - Continuous delivery jobs at ci.deis.io will update the deis CLI. Double-check that the
57- current binary installers are publicly downloadable from the opdemand S3 bucket.
5860
5961deis.io repo
6062------------
You can’t perform that action at this time.
0 commit comments