kopia lustrzana https://gitlab.com/gridtracker.org/gridtracker
Merge branch 'ci-optional-builds' into 'master'
Ci optional builds See merge request gridtracker.org/gridtracker!294 If this is changing anything in the UI or operational behavior, please prepare to update the wiki!fix-state-keys-shapesjson lin_flatpaks27
commit
3911ba6b10
|
@ -59,7 +59,7 @@ win:package:
|
||||||
stage: package
|
stage: package
|
||||||
rules:
|
rules:
|
||||||
# only do this with a manual tag starting with v or test_
|
# only do this with a manual tag starting with v or test_
|
||||||
- if: '$CI_COMMIT_TAG =~ /^(v|test_).*/'
|
- if: '$CI_COMMIT_TAG =~ /^(v|test_|win_).*/'
|
||||||
artifacts:
|
artifacts:
|
||||||
paths:
|
paths:
|
||||||
- artifacts/
|
- artifacts/
|
||||||
|
@ -121,7 +121,7 @@ linux:package:
|
||||||
stage: package
|
stage: package
|
||||||
rules:
|
rules:
|
||||||
# only do this with a manual tag starting with v or test_
|
# only do this with a manual tag starting with v or test_
|
||||||
- if: '$CI_COMMIT_TAG =~ /^(v|test_).*/'
|
- if: '$CI_COMMIT_TAG =~ /^(v|test_|lin_).*/'
|
||||||
artifacts:
|
artifacts:
|
||||||
paths:
|
paths:
|
||||||
- artifacts/
|
- artifacts/
|
||||||
|
@ -170,7 +170,7 @@ mac:package:
|
||||||
stage: package
|
stage: package
|
||||||
rules:
|
rules:
|
||||||
# only do this with a manual tag starting with v or test_
|
# only do this with a manual tag starting with v or test_
|
||||||
- if: '$CI_COMMIT_TAG =~ /^(v|test_).*/'
|
- if: '$CI_COMMIT_TAG =~ /^(v|test_|mac_).*/'
|
||||||
artifacts:
|
artifacts:
|
||||||
paths:
|
paths:
|
||||||
- artifacts/
|
- artifacts/
|
||||||
|
@ -210,7 +210,7 @@ arm:package:
|
||||||
NWJS64_BUILD: "nw54-arm64_2021-07-10"
|
NWJS64_BUILD: "nw54-arm64_2021-07-10"
|
||||||
rules:
|
rules:
|
||||||
# only do this with a manual tag starting with v or test_
|
# only do this with a manual tag starting with v or test_
|
||||||
- if: '$CI_COMMIT_TAG =~ /^(v|test_).*/'
|
- if: '$CI_COMMIT_TAG =~ /^(v|test_|lin_).*/'
|
||||||
artifacts:
|
artifacts:
|
||||||
paths:
|
paths:
|
||||||
- artifacts/
|
- artifacts/
|
||||||
|
@ -275,7 +275,7 @@ upload-Google:
|
||||||
variables:
|
variables:
|
||||||
GIT_STRATEGY: none
|
GIT_STRATEGY: none
|
||||||
rules:
|
rules:
|
||||||
- if: '$CI_COMMIT_TAG =~ /^(v|test_).*/'
|
- if: '$CI_COMMIT_TAG =~ /^(v|test_|win_|mac_|lin_).*/'
|
||||||
script:
|
script:
|
||||||
- |
|
- |
|
||||||
echo $GCP_SERVICE_KEY > gcloud-service-key.json
|
echo $GCP_SERVICE_KEY > gcloud-service-key.json
|
||||||
|
@ -375,7 +375,7 @@ sourcerelease:
|
||||||
virustotal_push:
|
virustotal_push:
|
||||||
stage: publish
|
stage: publish
|
||||||
rules:
|
rules:
|
||||||
- if: '$CI_COMMIT_TAG =~ /^(v|test_).*/'
|
- if: '$CI_COMMIT_TAG =~ /^(v|test_|win_).*/'
|
||||||
script:
|
script:
|
||||||
- |
|
- |
|
||||||
echo "Pushing release URLs to VirusTotal"
|
echo "Pushing release URLs to VirusTotal"
|
||||||
|
@ -386,22 +386,38 @@ virustotal_push:
|
||||||
discord_notify:
|
discord_notify:
|
||||||
stage: publish
|
stage: publish
|
||||||
rules:
|
rules:
|
||||||
- if: '$CI_COMMIT_TAG =~ /^(v|test_).*/'
|
- if: '$CI_COMMIT_TAG =~ /^(v|test_|win_|mac_|lin_).*/'
|
||||||
script:
|
script:
|
||||||
- |
|
- |
|
||||||
echo "Notifying Discord #developer-den that a release has built"
|
echo "Notifying Discord #developer-den that a release has built"
|
||||||
BASEURL="http://downloads.gridtracker.org/${CI_COMMIT_TAG}/"
|
BASEURL="http://downloads.gridtracker.org/${CI_COMMIT_TAG}/"
|
||||||
VER=`node version.js`
|
VER=`node version.js`
|
||||||
WIN_MD5=($(md5sum artifacts/GridTracker-Installer.${VER}.exe))
|
if [[ ${CI_COMMIT_TAG} = v* ]] || [[ ${CI_COMMIT_TAG} = test_* ]] || [[ ${CI_COMMIT_TAG} = win_* ]]
|
||||||
MAC_MD5=($(md5sum artifacts/GridTracker-${VER}-mac-x64.zip))
|
then
|
||||||
LINARM32_MD5=($(md5sum artifacts/GridTracker-${VER}-linux-arm32.tar.gz))
|
WIN_MD5=($(md5sum artifacts/GridTracker-Installer.${VER}.exe))
|
||||||
LINARM64_MD5=($(md5sum artifacts/GridTracker-${VER}-linux-arm64.tar.gz))
|
WIN_STRING="**GridTracker-Installer.${VER}.exe**\nmd5: ${WIN_MD5} - ${BASEURL}GridTracker-Installer.${VER}.exe\n\n"
|
||||||
LINx86_MD5=($(md5sum artifacts/GridTracker-${VER}-linux-x86.tar.gz))
|
fi
|
||||||
LINx64_MD5=($(md5sum artifacts/GridTracker-${VER}-linux-x64.tar.gz))
|
if [[ ${CI_COMMIT_TAG} = v* ]] || [[ ${CI_COMMIT_TAG} = test_* ]] || [[ ${CI_COMMIT_TAG} = mac_* ]]
|
||||||
DEB_MD5=($(md5sum artifacts/gridtracker_${VER}_all.deb))
|
then
|
||||||
|
MAC_MD5=($(md5sum artifacts/GridTracker-${VER}-mac-x64.zip))
|
||||||
|
MAC_STRING="**GridTracker-${VER}-mac-x64.zip**\nMD5: ${MAC_MD5} - ${BASEURL}GridTracker-${VER}-mac-x64.zip\n\n"
|
||||||
|
fi
|
||||||
|
if [[ ${CI_COMMIT_TAG} = v* ]] || [[ ${CI_COMMIT_TAG} = test_* ]] || [[ ${CI_COMMIT_TAG} = lin_* ]]
|
||||||
|
then
|
||||||
|
LINARM32_MD5=($(md5sum artifacts/GridTracker-${VER}-linux-arm32.tar.gz))
|
||||||
|
LINARM32_STRING="**GridTracker-${VER}-linux-arm32.tar.gz**\nMD5: ${LINARM32_MD5} - ${BASEURL}GridTracker-${VER}-linux-arm32.tar.gz\n\n"
|
||||||
|
LINARM64_MD5=($(md5sum artifacts/GridTracker-${VER}-linux-arm64.tar.gz))
|
||||||
|
LINARM64_STRING="**GridTracker-${VER}-linux-arm64.tar.gz**\nMD5: ${LINARM64_MD5} - ${BASEURL}GridTracker-${VER}-linux-arm64.tar.gz\n\n"
|
||||||
|
LINx86_MD5=($(md5sum artifacts/GridTracker-${VER}-linux-x86.tar.gz))
|
||||||
|
LINx86_STRING="**GridTracker-${VER}-linux-x86.tar.gz**\nMD5: ${LINx86_MD5} - ${BASEURL}GridTracker-${VER}-linux-x86.tar.gz\n\n"
|
||||||
|
LINx64_MD5=($(md5sum artifacts/GridTracker-${VER}-linux-x64.tar.gz))
|
||||||
|
LINx64_STRING="**GridTracker-${VER}-linux-x64.tar.gz**\nMD5: ${LINx64_MD5} - ${BASEURL}GridTracker-${VER}-linux-x64.tar.gz\n\n"
|
||||||
|
DEB_MD5=($(md5sum artifacts/gridtracker_${VER}_all.deb))
|
||||||
|
DEB_STRING="**gridtracker_${VER}_all.deb**\nMD5: ${DEB_MD5} - ${BASEURL}gridtracker_${VER}_all.deb"
|
||||||
|
fi
|
||||||
curl -H "Content-Type: application/json" -X POST $DISCORD_WEBHOOK --data-binary @- << EOM
|
curl -H "Content-Type: application/json" -X POST $DISCORD_WEBHOOK --data-binary @- << EOM
|
||||||
{
|
{
|
||||||
"content": "**GridTracker-Installer.${VER}.exe**\nmd5: ${WIN_MD5} - ${BASEURL}GridTracker-Installer.${VER}.exe\n\n**GridTracker-${VER}-mac-x64.zip**\nMD5: ${MAC_MD5} - ${BASEURL}GridTracker-${VER}-mac-x64.zip\n\n**GridTracker-${VER}-linux-arm32.tar.gz**\nMD5: ${LINARM32_MD5} - ${BASEURL}GridTracker-${VER}-linux-arm32.tar.gz\n\n**GridTracker-${VER}-linux-arm64.tar.gz**\nMD5: ${LINARM64_MD5} - ${BASEURL}GridTracker-${VER}-linux-arm64.tar.gz\n\n**GridTracker-${VER}-linux-x86.tar.gz**\nMD5: ${LINx86_MD5} - ${BASEURL}GridTracker-${VER}-linux-x86.tar.gz\n\n**GridTracker-${VER}-linux-x64.tar.gz**\nMD5: ${LINx64_MD5} - ${BASEURL}GridTracker-${VER}-linux-x64.tar.gz\n\n**gridtracker_${VER}_all.deb**\nMD5: ${DEB_MD5} - ${BASEURL}gridtracker_${VER}_all.deb",
|
"content": "${WIN_STRING}${MAC_STRING}${LINARM32_STRING}${LINARM64_STRING}${LINx86_STRING}${LINx64_STRING}${DEB_STRING}",
|
||||||
"tts": false,
|
"tts": false,
|
||||||
"embeds": [],
|
"embeds": [],
|
||||||
"components": {},
|
"components": {},
|
||||||
|
|
Ładowanie…
Reference in New Issue