Switch from latest repo commit to latest release

This commit is contained in:
Henning Bocklage 2022-03-18 21:06:04 +01:00
parent 45a63d2b9f
commit 7a3c4995bd

View File

@ -43,10 +43,12 @@ build-deemix:
curl --request DELETE --header "PRIVATE-TOKEN: ${PAT_TOKEN}" "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/${DEEMIX_VERSION_ID}"
script:
- git clone --depth=1 https://gitlab.com/RemixDev/deemix-gui.git --recursive src
- git clone https://gitlab.com/RemixDev/deemix-gui.git --recursive src
# Patching pkg.targets to our need
- jq '.pkg.targets = ["node16-linuxstatic-x64","node16-linuxstatic-arm64","node16-linuxstatic-armv7"]' src/server/package.json > tmp.$$.json && mv tmp.$$.json src/server/package.json
- cd src
- export DEEMIX_BUILD_SHA=$(curl https://deemix.app/gui/latest | rev | cut -c1-10 | rev)
- git reset --hard --recurse-submodules $DEEMIX_BUILD_SHA
- jq '.pkg.targets = ["node16-linuxstatic-x64","node16-linuxstatic-arm64","node16-linuxstatic-armv7"]' src/server/package.json > tmp.$$.json && mv tmp.$$.json src/server/package.json
- ls -alh
- yarn config set network-timeout 1000000 -g
- yarn add pkg@latest