Skip to content

Commit

Permalink
Merge pull request #782 from kadel/latest-builds
Browse files Browse the repository at this point in the history
build and upload master builds to bintray
  • Loading branch information
kadel authored Aug 21, 2017
2 parents 6bf2e1e + 1930ebe commit 9eadd27
Show file tree
Hide file tree
Showing 3 changed files with 62 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,19 @@ after_success:
- goveralls -coverprofile=gover.coverprofile -service=travis-ci
# sync the docs only if everything else was successful
- ./script/sync-docs.sh

before_deploy:
- make cross
- ./script/generate-bintray-json.sh

deploy:
provider: bintray
repo: kompose/kompose
file: ./.bintray.json
user:
secure: "cZsouVvTLdvBeXbjQx9n3Pp9pA1x6DK8uiaXEJBO7oG1CbS218hdguEMfZuqk7a1mCPLeKquIbGvlmJZKnthW8T7ncJVLcHSWCT3w5UeyRrhZ2KBdvi0Lw3DFsf2zqRTWqo9yOW2LFU8EK9v8xFVSSdqufHlNhlM9TtT1rEmv9y3E8wyPkP+QMYahc9HCEQByKBL8JhsyK3QIUlKH4R6aLrYE2tsXFNj3Qc3QokziDrxYVgJrzZlV5+gqV5+hR2xHyekwgS+2j+86Gdrm2R4JqF7nz3Y3D21bl5obvuDFTlZmr70r2BE4cvCZSL580NunQxH+eBS0373YS2UqVZDxJw7IhnqRaDTrb7gDEynSaXg/DnVmNZMC1uDv1LizkpoW0lvgnjObIbRF3hM2NqyI7Kr4RkpPl2V5xmIRFCPW63Bk42s+1/2v4TgVHCr6GeqrR6Y6T9yob+tdv9C3MJF5Ac9qJpr/WMWgJNQ+vrgWKqrWgMYrdbIl1G2cR8opvFNBEaz9+fU0L0YrUxFRi0Oyhm6cLaqarB6xnTZI0dIvEuRGcI5C0CfGUWSjR9C02VKrStxr8mxPMpDNDUc1IvvkbYi71JW6WWglNdO/s2RF6JFeM8v/Elyk1NLZp3zeoASLj1u5Iorumf/3K/En415hfwt86vlqzyhURf2N12Wih4="
key:
secure: "2N6sQef/cJHS6rCJ3YSGxeOChx3pJ0hmM5uuSi0BN8GXVZWQAf3k+pa2s7OISHQoy0YEF7Fpkmx5MsLwPNYSEkwX0HOSFwQPWULZv+uiIXY+bftTUb+adDdZiKC+pHHxcyHl+eDnVd8Ns2fUY6IWFVNNRgzlIiZ8j0OErjah9njG9DUvn/IwGqdSvoe5B17rlMFnMx8W4HalnQ9R2Ye/vPe7yknuv2YbWRrg/7kZKkse7jlh1bJ8qH+qm5pX8lVPCvYCtDQRxAQ7gavpLvcohMAdg41l60wlJGGhZ0fcX8E0xBbQHtRUFYmspUif3VYExbL3Gm99B241XW6IOv4oEWqlJzzRDwhp7G0GpuX8isrsSAkmzpWjLlhwAv0WuREQqxs2FOctzJHQIkna0hoW3MdY+f5uV+RL1DVr5Nblut1Cupy38oANNHc3qmdaCfGYKqpybty4C8fTYg/OqprRz4ZrMRQQXdi5mCN+e0OpIkNt/fm84vERkCKVFOx3pYCeS7LhBhy6ioD9HxTO1wY7vea90VTcMWS7rGby0FuqIxhwtG6OAAvmickkGcpKg1AycSrbflIi9mmVNvWljQOtV00HgcDzjc+o4xGQQlosuHRqbuNDYHGLHPKesBpsGPvPuzEen+VyWDM2mtIT8/yHs25gACgAFUeM85a8IV/VW0o="
skip_cleanup: true
on:
go: 1.8
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,8 @@ test-dep:
go get github.com/Masterminds/glide
go get github.com/sgotti/glide-vc
go get github.com/golang/lint/golint
go get github.com/mitchellh/gox


# build docker image that is used for running all test localy
.PHONY: test-image
Expand Down
44 changes: 44 additions & 0 deletions script/generate-bintray-json.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
#!/bin/sh

DATE=`date --iso-8601=date`
TIME=`date --iso-8601=seconds`

cat > "./.bintray.json" <<EOF
{
"package": {
"name": "kompose",
"repo": "kompose",
"subject": "kompose",
"desc": "Go from Docker Compose to Kubernetes",
"website_url": "https://github.com/kubernetes/kompose",
"issue_tracker_url": "https://github.com/kubernetes/komposeissues",
"vcs_url": "https://github.com/kubernetes/kompose",
"licenses": ["Apache-2.0"],
"public_download_numbers": false,
"public_stats": false
},
"version": {
"name": "latest",
"desc": "Kompose build from master branch",
"released": "${DATE}",
"vcs_tag": "${TRAVIS_COMMIT}",
"attributes": [{"name": "TRAVIS_JOB_NUMBER", "values" : ["${TRAVIS_JOB_NUMBER}"], "type": "string"},
{"name": "TRAVIS_JOB_ID", "values" : ["${TRAVIS_JOB_ID}"], "type": "string"},
{"name": "TRAVIS_COMMIT", "values" : ["${TRAVIS_COMMIT}"], "type": "string"},
{"name": "TRAVIS_BRANCH", "values" : ["${TRAVIS_BRANCH}"], "type": "string"},
{"name": "TRAVIS_PULL_REQUEST", "values" : ["${TRAVIS_PULL_REQUEST}"], "type": "string"},
{"name": "date", "values" : ["${TIME}"], "type": "date"}],
"gpgSign": false
},
"files":
[
{"includePattern": "bin/(.*)",
"uploadPattern": "./latest/\$1",
"matrixParams": {"override": 1 }
}
],
"publish": true
}
EOF

0 comments on commit 9eadd27

Please sign in to comment.