Skip to content

Commit 9068052

Browse files
committed
feat(stacks): add configmap-reload
1 parent f26aa59 commit 9068052

2 files changed

Lines changed: 32 additions & 0 deletions

File tree

scripts/checker.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -283,6 +283,12 @@
283283
"owner": "kubernetes",
284284
"match": "^v[0-9]{1,}\.[0-9]{1,}\.[0-9]{1,}$",
285285
},
286+
"configmap-reload": {
287+
"name": "configmap-reload",
288+
"type": "github",
289+
"owner": "jimmidyson",
290+
"match": "^v[0-9]{1,}\.[0-9]{1,}\.[0-9]{1,}$",
291+
},
286292
}
287293

288294

stacks/configmap-reload/build.sh

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
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+
install-stack go 1.19.3
10+
. /opt/drycc/go/profile.d/*.sh
11+
12+
git clone --dept 1 -b v${STACK_VERSION} https://github.com/jimmidyson/configmap-reload $GOPATH/src/configmap-reload \
13+
&& cd $GOPATH/src/configmap-reload/ \
14+
&& make
15+
16+
BIN_DIR="${DATA_DIR}"/bin
17+
mkdir -p "${BIN_DIR}"
18+
mv out/configmap-reload "${BIN_DIR}"
19+
20+
#upx
21+
upx --lzma --best "${BIN_DIR}"/*
22+
}
23+
24+
# call build stack
25+
build-stack "${1}"
26+

0 commit comments

Comments
 (0)