updating download logic to use git as it is required for versioning in the application

This commit is contained in:
thelamer 2019-01-20 01:08:40 -08:00
parent 970931a675
commit d64da1c97f
3 changed files with 15 additions and 18 deletions

View file

@ -43,12 +43,11 @@ RUN \
| jq -r '. | .sha'); \
fi && \
mkdir -p /app/headphones && \
curl -o \
/tmp/headphones.tar.gz -L \
"https://github.com/rembo10/headphones/archive/${HEADPHONES_COMMIT}.tar.gz" && \
tar xf \
/tmp/headphones.tar.gz -C \
/app/headphones --strip-components=1 && \
cd /app/headphones && \
git init && \
git remote add origin https://github.com/rembo10/headphones.git && \
git fetch --depth 1 origin ${HEADPHONES_COMMIT} && \
git checkout FETCH_HEAD && \
echo "**** cleanup ****" && \
apk del --purge \
build-dependencies && \

View file

@ -46,12 +46,11 @@ RUN \
| jq -r '. | .sha'); \
fi && \
mkdir -p /app/headphones && \
curl -o \
/tmp/headphones.tar.gz -L \
"https://github.com/rembo10/headphones/archive/${HEADPHONES_COMMIT}.tar.gz" && \
tar xf \
/tmp/headphones.tar.gz -C \
/app/headphones --strip-components=1 && \
cd /app/headphones && \
git init && \
git remote add origin https://github.com/rembo10/headphones.git && \
git fetch --depth 1 origin ${HEADPHONES_COMMIT} && \
git checkout FETCH_HEAD && \
echo "**** cleanup ****" && \
apk del --purge \
build-dependencies && \

View file

@ -46,12 +46,11 @@ RUN \
| jq -r '. | .sha'); \
fi && \
mkdir -p /app/headphones && \
curl -o \
/tmp/headphones.tar.gz -L \
"https://github.com/rembo10/headphones/archive/${HEADPHONES_COMMIT}.tar.gz" && \
tar xf \
/tmp/headphones.tar.gz -C \
/app/headphones --strip-components=1 && \
cd /app/headphones && \
git init && \
git remote add origin https://github.com/rembo10/headphones.git && \
git fetch --depth 1 origin ${HEADPHONES_COMMIT} && \
git checkout FETCH_HEAD && \
echo "**** cleanup ****" && \
apk del --purge \
build-dependencies && \