From 037646a92cab8b0ebe00b801c6e1b067a0720de2 Mon Sep 17 00:00:00 2001 From: sparklyballs Date: Mon, 11 Jun 2018 16:18:29 +0100 Subject: [PATCH] get version from github --- Dockerfile | 4 +++- README.md | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 38c49c3..ab8f4a6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -128,9 +128,11 @@ RUN \ install -Dm644 /tmp/patches/xcache.ini /etc/php5/conf.d/xcache.ini && \ echo "**** install projectsend ****" && \ rm /var/www/localhost/htdocs/index.html && \ + PROJS_TAG=$(curl -sX GET "https://api.github.com/repos/projectsend/projectsend/releases/latest" \ + | awk '/tag_name/{print $4;exit}' FS='[""]') && \ curl -o \ /tmp/ProjectSend.tar.gz -L \ - "https://codeload.github.com/ignacionelson/ProjectSend/tar.gz/r1053" && \ + "https://github.com/projectsend/projectsend/archive/$PROJS_TAG.tar.gz" && \ tar -zxf \ /tmp/ProjectSend.tar.gz --strip-components=1 -C /var/www/localhost/htdocs/ && \ mv /var/www/localhost/htdocs/upload /defaults/ && \ diff --git a/README.md b/README.md index 17dc2f5..5ff01b3 100644 --- a/README.md +++ b/README.md @@ -84,5 +84,6 @@ More info at [ProjectSend][appurl]. ## Versions ++ **11.06.17:** Fetch version from github. + **09.12.17:** Rebase to alpine 3.7. + **13.06.17:** Initial Release.