Skip to content

Commit 6a02513

Browse files
zhangeamonzhangeamon
authored andcommitted
2 parents bf9a64f + 276a045 commit 6a02513

9 files changed

Lines changed: 355 additions & 52 deletions

File tree

Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,12 @@ RUN install-packages \
6767

6868
ENV PATH "/usr/local/python/bin:${PATH}"
6969

70+
ADD requirements.txt /tmp/requirements.txt
71+
7072
RUN UPX_VERSION=4.1.0; \
7173
OS_ARCH=$(dpkg --print-architecture); \
7274
wget https://github.com/upx/upx/releases/download/v${UPX_VERSION}/upx-${UPX_VERSION}-${OS_ARCH}_linux.tar.xz; \
7375
tar -Jxvf upx-${UPX_VERSION}-${OS_ARCH}_linux.tar.xz; \
7476
cp upx-${UPX_VERSION}-${OS_ARCH}_linux/upx /usr/local/bin; \
7577
rm -rf upx-*; \
76-
pip install oss2 packaging;
78+
pip install -r /tmp/requirements.txt;

build.sh

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -119,14 +119,6 @@ function patch() {
119119
return 0
120120
}
121121

122-
function clean-tags() {
123-
for tag in $(git tag --sort creatordate|head -n "$1")
124-
do
125-
git tag -d ${tag}
126-
git push origin :refs/tags/${tag}
127-
done
128-
}
129-
130122
function all() {
131123
STACK_NAME=$(echo "${1}" | cut -d '@' -f 1)
132124
STACK_VERSION=$(echo "${1}" | cut -d '@' -f 2)

requirements.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
oss2>=2.19.1
2+
packaging>=21.0

scripts/checker.py

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
"type": "github",
5656
"owner": "prometheus-community",
5757
"match": "^v[0-9]{1,}\.[0-9]{1,}\.[0-9]{1,}$",
58-
},
58+
},
5959
"jmx_exporter": {
6060
"name": "jmx_exporter",
6161
"type": "github",
@@ -68,12 +68,6 @@
6868
"owner": "caddyserver",
6969
"match": "^v[0-9]{1,}\.[0-9]{1,}\.[0-9]{1,}$",
7070
},
71-
"envtpl": {
72-
"name": "envtpl",
73-
"type": "github",
74-
"owner": "duanhongyi",
75-
"match": "^v[0-9]{1,}\.[0-9]{1,}\.[0-9]{1,}$",
76-
},
7771
"erlang": {
7872
"name": "otp",
7973
"type": "github",
@@ -469,7 +463,7 @@
469463

470464
def create_github_tag(stack, tag_name):
471465
sha = requests.get(
472-
"https://api.github.com/repos/drycc/stacks/git/trees/main",
466+
"https://api.github.com/repos/drycc/stacks/git/trees/main",
473467
headers=github_headers,
474468
).json()["sha"]
475469
response = requests.post(

0 commit comments

Comments
 (0)