Skip to content

Commit 63802eb

Browse files
committed
feat(stacks): add apolloconfig
1 parent 2e7df61 commit 63802eb

4 files changed

Lines changed: 67 additions & 0 deletions

File tree

scripts/checker.py

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,24 @@
88
github_headers = {'Authorization': 'token %s' % os.environ.get("GITHUB_TOKEN")}
99

1010
repo_info_table = {
11+
"apollo-adminservice": {
12+
"name": "apollo",
13+
"type": "github",
14+
"owner": "apolloconfig",
15+
"match": "^v[1-9]{1,}\.[0-9]{1,}\.[0-9]{1,}$",
16+
},
17+
"apollo-config": {
18+
"name": "apollo",
19+
"type": "github",
20+
"owner": "apolloconfig",
21+
"match": "^v[1-9]{1,}\.[0-9]{1,}\.[0-9]{1,}$",
22+
},
23+
"apollo-portal": {
24+
"name": "apollo",
25+
"type": "github",
26+
"owner": "apolloconfig",
27+
"match": "^v[1-9]{1,}\.[0-9]{1,}\.[0-9]{1,}$",
28+
},
1129
"alertmanager": {
1230
"name": "alertmanager",
1331
"type": "github",
@@ -548,3 +566,4 @@ def main():
548566

549567
if __name__ == "__main__":
550568
main()
569+
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#!/bin/bash
2+
3+
# Load stack utils
4+
. /usr/bin/stack-utils
5+
6+
# Implement build function
7+
function build() {
8+
generate-stack-path
9+
10+
curl -fsSL -o tmp.zip https://github.com/apolloconfig/apollo/releases/download/v${STACK_VERSION}/apollo-adminservice-${STACK_VERSION}-github.zip
11+
unzip tmp.zip -d "${DATA_DIR}"
12+
rm tmp.zip -rf
13+
}
14+
15+
# call build stack
16+
build-stack "${1}"
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#!/bin/bash
2+
3+
# Load stack utils
4+
. /usr/bin/stack-utils
5+
6+
# Implement build function
7+
function build() {
8+
generate-stack-path
9+
10+
curl -fsSL -o tmp.zip https://github.com/apolloconfig/apollo/releases/download/v${STACK_VERSION}/apollo-configservice-${STACK_VERSION}-github.zip
11+
unzip tmp.zip -d "${DATA_DIR}"
12+
rm tmp.zip -rf
13+
}
14+
15+
# call build stack
16+
build-stack "${1}"

stacks/apollo-portal/build.sh

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#!/bin/bash
2+
3+
# Load stack utils
4+
. /usr/bin/stack-utils
5+
6+
# Implement build function
7+
function build() {
8+
generate-stack-path
9+
10+
curl -fsSL -o tmp.zip https://github.com/apolloconfig/apollo/releases/download/v${STACK_VERSION}/apollo-portal-${STACK_VERSION}-github.zip
11+
unzip tmp.zip -d "${DATA_DIR}"
12+
rm tmp.zip -rf
13+
}
14+
15+
# call build stack
16+
build-stack "${1}"

0 commit comments

Comments
 (0)