forked from kubernetes/kompose
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgenerate-bintray-json.sh
executable file
·44 lines (40 loc) · 1.55 KB
/
generate-bintray-json.sh
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
#!/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