File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1414 apt-get update && \
1515 apt-get install -y \
1616 git \
17+ jq \
1718 nano \
1819 net-tools \
1920 sudo && \
@@ -22,12 +23,14 @@ RUN \
2223 CODE_RELEASE=$(curl -sX GET "https://api.github.com/repos/cdr/code-server/releases/latest" \
2324 | awk '/tag_name/{print $4;exit}' FS='[""]' ); \
2425 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' ) && \
2528 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} " && \
2831 tar xzf /tmp/code.tar.gz -C \
2932 /usr/bin/ --strip-components=1 \
30- --wildcards code-server*/code-server && \
33+ --wildcards code-server*/code-server && \
3134 echo "**** clean up ****" && \
3235 rm -rf \
3336 /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
229229
230230## Versions
231231
232+ * ** 17.01.20:** - Fix artifact url retrieval from github.
232233* ** 24.10.19:** - Upgrade to v2 builds.
233234* ** 28.09.19:** - Update project logo.
234235* ** 21.09.19:** - Add development builds/tag.
Original file line number Diff line number Diff line change @@ -65,6 +65,7 @@ app_setup_block: |
6565
6666# changelog
6767changelogs :
68+ - { date: "17.01.20:", desc: "Fix artifact url retrieval from github." }
6869 - { date: "24.10.19:", desc: "Upgrade to v2 builds." }
6970 - { date: "28.09.19:", desc: "Update project logo." }
7071 - { date: "21.09.19:", desc: "Add development builds/tag." }
You can’t perform that action at this time.
0 commit comments