updating download logic to use git as it is required for versioning in the application
This commit is contained in:
parent
970931a675
commit
d64da1c97f
3 changed files with 15 additions and 18 deletions
11
Dockerfile
11
Dockerfile
|
@ -43,12 +43,11 @@ RUN \
|
||||||
| jq -r '. | .sha'); \
|
| jq -r '. | .sha'); \
|
||||||
fi && \
|
fi && \
|
||||||
mkdir -p /app/headphones && \
|
mkdir -p /app/headphones && \
|
||||||
curl -o \
|
cd /app/headphones && \
|
||||||
/tmp/headphones.tar.gz -L \
|
git init && \
|
||||||
"https://github.com/rembo10/headphones/archive/${HEADPHONES_COMMIT}.tar.gz" && \
|
git remote add origin https://github.com/rembo10/headphones.git && \
|
||||||
tar xf \
|
git fetch --depth 1 origin ${HEADPHONES_COMMIT} && \
|
||||||
/tmp/headphones.tar.gz -C \
|
git checkout FETCH_HEAD && \
|
||||||
/app/headphones --strip-components=1 && \
|
|
||||||
echo "**** cleanup ****" && \
|
echo "**** cleanup ****" && \
|
||||||
apk del --purge \
|
apk del --purge \
|
||||||
build-dependencies && \
|
build-dependencies && \
|
||||||
|
|
|
@ -46,12 +46,11 @@ RUN \
|
||||||
| jq -r '. | .sha'); \
|
| jq -r '. | .sha'); \
|
||||||
fi && \
|
fi && \
|
||||||
mkdir -p /app/headphones && \
|
mkdir -p /app/headphones && \
|
||||||
curl -o \
|
cd /app/headphones && \
|
||||||
/tmp/headphones.tar.gz -L \
|
git init && \
|
||||||
"https://github.com/rembo10/headphones/archive/${HEADPHONES_COMMIT}.tar.gz" && \
|
git remote add origin https://github.com/rembo10/headphones.git && \
|
||||||
tar xf \
|
git fetch --depth 1 origin ${HEADPHONES_COMMIT} && \
|
||||||
/tmp/headphones.tar.gz -C \
|
git checkout FETCH_HEAD && \
|
||||||
/app/headphones --strip-components=1 && \
|
|
||||||
echo "**** cleanup ****" && \
|
echo "**** cleanup ****" && \
|
||||||
apk del --purge \
|
apk del --purge \
|
||||||
build-dependencies && \
|
build-dependencies && \
|
||||||
|
|
|
@ -46,12 +46,11 @@ RUN \
|
||||||
| jq -r '. | .sha'); \
|
| jq -r '. | .sha'); \
|
||||||
fi && \
|
fi && \
|
||||||
mkdir -p /app/headphones && \
|
mkdir -p /app/headphones && \
|
||||||
curl -o \
|
cd /app/headphones && \
|
||||||
/tmp/headphones.tar.gz -L \
|
git init && \
|
||||||
"https://github.com/rembo10/headphones/archive/${HEADPHONES_COMMIT}.tar.gz" && \
|
git remote add origin https://github.com/rembo10/headphones.git && \
|
||||||
tar xf \
|
git fetch --depth 1 origin ${HEADPHONES_COMMIT} && \
|
||||||
/tmp/headphones.tar.gz -C \
|
git checkout FETCH_HEAD && \
|
||||||
/app/headphones --strip-components=1 && \
|
|
||||||
echo "**** cleanup ****" && \
|
echo "**** cleanup ****" && \
|
||||||
apk del --purge \
|
apk del --purge \
|
||||||
build-dependencies && \
|
build-dependencies && \
|
||||||
|
|
Loading…
Add table
Reference in a new issue