Commit 697c41be authored by Micha Gläß-Stöcker's avatar Micha Gläß-Stöcker
Browse files

use the correct var to download the release archive from github

parent 2145909d
Pipeline #2258 failed with stage
in 4 minutes and 21 seconds
......@@ -21,7 +21,7 @@ build:
LATEST_DHUB=$(wget -q https://registry.hub.docker.com/v1/repositories/$D_IMAGE_TAG/tags -O - | sed -e 's/[][]//g' -e 's/"//g' -e 's/ //g' | tr '}' '\n' | awk -F: '{print $3}' | tail -n1);
if [ "$LATEST_GITHUB" != "$LATEST_DHUB" ]
then
wget https://github.com/writefreely/writefreely/archive/${VERSION}.tar.gz -O /tmp/writefreely.tar.gz
wget https://github.com/writefreely/writefreely/archive/${LATEST_GITHUB}.tar.gz -O /tmp/writefreely.tar.gz
tar xf /tmp/writefreely.tar.gz --strip-components=1
sed -i 's/nodejs-npm/npm/g' Dockerfile
docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment