mirror of
https://github.com/linuxserver/docker-code-server.git
synced 2024-11-22 20:15:41 +01:00
fix artifact retrieval
This commit is contained in:
parent
0a84da8cbc
commit
3d83533d55
@ -14,6 +14,7 @@ RUN \
|
|||||||
apt-get update && \
|
apt-get update && \
|
||||||
apt-get install -y \
|
apt-get install -y \
|
||||||
git \
|
git \
|
||||||
|
jq \
|
||||||
nano \
|
nano \
|
||||||
net-tools \
|
net-tools \
|
||||||
sudo && \
|
sudo && \
|
||||||
@ -22,12 +23,14 @@ RUN \
|
|||||||
CODE_RELEASE=$(curl -sX GET "https://api.github.com/repos/cdr/code-server/releases/latest" \
|
CODE_RELEASE=$(curl -sX GET "https://api.github.com/repos/cdr/code-server/releases/latest" \
|
||||||
| awk '/tag_name/{print $4;exit}' FS='[""]'); \
|
| awk '/tag_name/{print $4;exit}' FS='[""]'); \
|
||||||
fi && \
|
fi && \
|
||||||
|
CODE_URL=$(curl -sX GET "https://api.github.com/repos/cdr/code-server/releases/tags/${CODE_RELEASE}" \
|
||||||
|
| jq -r '.assets[] | select(.browser_download_url | contains("linux-x86_64")) | .browser_download_url') && \
|
||||||
curl -o \
|
curl -o \
|
||||||
/tmp/code.tar.gz -L \
|
/tmp/code.tar.gz -L \
|
||||||
"https://github.com/cdr/code-server/releases/download/${CODE_RELEASE}/code-server${CODE_RELEASE}-linux-x86_64.tar.gz" && \
|
"${CODE_URL}" && \
|
||||||
tar xzf /tmp/code.tar.gz -C \
|
tar xzf /tmp/code.tar.gz -C \
|
||||||
/usr/bin/ --strip-components=1 \
|
/usr/bin/ --strip-components=1 \
|
||||||
--wildcards code-server*/code-server && \
|
--wildcards code-server*/code-server && \
|
||||||
echo "**** clean up ****" && \
|
echo "**** clean up ****" && \
|
||||||
rm -rf \
|
rm -rf \
|
||||||
/tmp/* \
|
/tmp/* \
|
||||||
|
@ -229,6 +229,7 @@ Once registered you can define the dockerfile to use with `-f Dockerfile.aarch64
|
|||||||
|
|
||||||
## Versions
|
## Versions
|
||||||
|
|
||||||
|
* **17.01.20:** - Fix artifact url retrieval from github.
|
||||||
* **24.10.19:** - Upgrade to v2 builds.
|
* **24.10.19:** - Upgrade to v2 builds.
|
||||||
* **28.09.19:** - Update project logo.
|
* **28.09.19:** - Update project logo.
|
||||||
* **21.09.19:** - Add development builds/tag.
|
* **21.09.19:** - Add development builds/tag.
|
||||||
|
@ -65,6 +65,7 @@ app_setup_block: |
|
|||||||
|
|
||||||
# changelog
|
# changelog
|
||||||
changelogs:
|
changelogs:
|
||||||
|
- { date: "17.01.20:", desc: "Fix artifact url retrieval from github." }
|
||||||
- { date: "24.10.19:", desc: "Upgrade to v2 builds." }
|
- { date: "24.10.19:", desc: "Upgrade to v2 builds." }
|
||||||
- { date: "28.09.19:", desc: "Update project logo." }
|
- { date: "28.09.19:", desc: "Update project logo." }
|
||||||
- { date: "21.09.19:", desc: "Add development builds/tag." }
|
- { date: "21.09.19:", desc: "Add development builds/tag." }
|
||||||
|
Loading…
Reference in New Issue
Block a user