File tree Expand file tree Collapse file tree 3 files changed +17
-4
lines changed Expand file tree Collapse file tree 3 files changed +17
-4
lines changed Original file line number Diff line number Diff line change @@ -3,10 +3,10 @@ FROM alpine:latest
3
3
RUN apk add git curl
4
4
COPY download.sh /app/bin/
5
5
6
- # Download version v0.4.0
6
+ # Download version v0.5.3
7
7
RUN mkdir -p /app/bin && \
8
8
cd /app/bin && \
9
- ./download.sh "https://api.github.com/repos/fabien-marty/github-next-semantic-version/releases/182114439" && \
9
+ ./download.sh "https://api.github.com/repos/fabien-marty/github-next-semantic-version/releases/183066274" github-next-semantic-version && \
10
10
chmod +x github-next-semantic-version
11
11
12
12
COPY entrypoint.sh /
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ COPY download.sh /app/bin/
6
6
# Download version {{ VERSION }}
7
7
RUN mkdir -p /app/bin && \
8
8
cd /app/bin && \
9
- ./download.sh "{{ URL }}" && \
9
+ ./download.sh "{{ URL }}" github-next-semantic-version && \
10
10
chmod +x github-next-semantic-version
11
11
12
12
COPY entrypoint.sh /
Original file line number Diff line number Diff line change 1
1
#! /bin/sh
2
2
3
3
URL=$1
4
+ NAME=$2
4
5
if test " ${URL} " = " " ; then
5
6
echo " ERROR: missing URL"
6
7
exit 1
7
8
fi
9
+ if test " ${NAME} " = " " ; then
10
+ echo " ERROR: missing NAME"
11
+ exit 1
12
+ fi
8
13
echo " URL=${URL} "
14
+ echo " NAME=${NAME} "
9
15
10
- ARCH=${2 :- linux-amd64}
16
+ ARCH=${3 :- linux-amd64}
11
17
echo " ARCH=${ARCH} "
12
18
19
+ curl -s " ${URL} " \
20
+ | grep " browser_download_url" \
21
+ | grep " ${ARCH} " \
22
+ | grep " /${NAME} /" \
23
+ | grep -v " md5"
24
+
13
25
LOCATION=$( curl -s " ${URL} " \
14
26
| grep " browser_download_url" \
15
27
| grep " ${ARCH} " \
28
+ | grep " /${NAME} -v" \
16
29
| grep -v " md5" \
17
30
| awk ' { print $2 }' \
18
31
| sed ' s/,$//' \
You can’t perform that action at this time.
0 commit comments