File tree Expand file tree Collapse file tree 3 files changed +8
-3
lines changed Expand file tree Collapse file tree 3 files changed +8
-3
lines changed Original file line number Diff line number Diff line change 14
14
apt-get update && \
15
15
apt-get install -y \
16
16
git \
17
+ jq \
17
18
nano \
18
19
net-tools \
19
20
sudo && \
@@ -22,12 +23,14 @@ RUN \
22
23
CODE_RELEASE=$(curl -sX GET "https://api.github.com/repos/cdr/code-server/releases/latest" \
23
24
| awk '/tag_name/{print $4;exit}' FS='[""]' ); \
24
25
fi && \
26
+ CODE_URL=$(curl -sX GET "https://api.github.com/repos/cdr/code-server/releases/tags/${CODE_RELEASE}" \
27
+ | jq -r '.assets[] | select(.browser_download_url | contains("linux-x86_64")) | .browser_download_url' ) && \
25
28
curl -o \
26
- /tmp/code.tar.gz -L \
27
- "https://github.com/cdr/code-server/releases/download/${CODE_RELEASE}/code-server${CODE_RELEASE}-linux-x86_64.tar.gz " && \
29
+ /tmp/code.tar.gz -L \
30
+ "${CODE_URL} " && \
28
31
tar xzf /tmp/code.tar.gz -C \
29
32
/usr/bin/ --strip-components=1 \
30
- --wildcards code-server*/code-server && \
33
+ --wildcards code-server*/code-server && \
31
34
echo "**** clean up ****" && \
32
35
rm -rf \
33
36
/tmp/* \
Original file line number Diff line number Diff line change @@ -229,6 +229,7 @@ Once registered you can define the dockerfile to use with `-f Dockerfile.aarch64
229
229
230
230
## Versions
231
231
232
+ * ** 17.01.20:** - Fix artifact url retrieval from github.
232
233
* ** 24.10.19:** - Upgrade to v2 builds.
233
234
* ** 28.09.19:** - Update project logo.
234
235
* ** 21.09.19:** - Add development builds/tag.
Original file line number Diff line number Diff line change @@ -65,6 +65,7 @@ app_setup_block: |
65
65
66
66
# changelog
67
67
changelogs :
68
+ - { date: "17.01.20:", desc: "Fix artifact url retrieval from github." }
68
69
- { date: "24.10.19:", desc: "Upgrade to v2 builds." }
69
70
- { date: "28.09.19:", desc: "Update project logo." }
70
71
- { date: "21.09.19:", desc: "Add development builds/tag." }
You can’t perform that action at this time.
0 commit comments