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'); \
|
||||
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 && \
|
||||
|
|
|
@ -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 && \
|
||||
|
|
|
@ -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 && \
|
||||
|
|
Loading…
Add table
Reference in a new issue