Cirrus updates

This commit is contained in:
Joe Donofry 2023-02-20 04:05:41 +00:00
parent 17ad97c517
commit 8394bfe0f7

View file

@ -2,7 +2,6 @@ task:
macos_instance: macos_instance:
image: ghcr.io/cirruslabs/macos-monterey-xcode:13 image: ghcr.io/cirruslabs/macos-monterey-xcode:13
name: Build - macOS Apple Silicon name: Build - macOS Apple Silicon
only_if: $CIRRUS_REPO_OWNER == 'Nheko-Reborn'
environment: environment:
GITLAB_TRIGGER_TOKEN: ENCRYPTED[!5fb4bbdecbde3b2c766ac7383dca573cd5ec8b815c5ac9bede0cadfe9ad70ecd3e64b1728f7840da087099f3fc1fd4f7!] GITLAB_TRIGGER_TOKEN: ENCRYPTED[!5fb4bbdecbde3b2c766ac7383dca573cd5ec8b815c5ac9bede0cadfe9ad70ecd3e64b1728f7840da087099f3fc1fd4f7!]
homebrew_script: homebrew_script:
@ -13,12 +12,7 @@ task:
zip_script: zip_script:
- ditto -c -k --sequesterRsrc --keepParent build/nheko.app build/nheko.zip - ditto -c -k --sequesterRsrc --keepParent build/nheko.app build/nheko.zip
gitlab_script: gitlab_script:
- curl -X POST - >
--fail [ "${CIRRUS_BRANCH}" == "master" ] && curl -X POST --fail -F token="${GITLAB_TRIGGER_TOKEN}" -F ref="${CIRRUS_BRANCH}" -F "variables[TRIGGER_BUILD_ID]=${CIRRUS_BUILD_ID}" -F "variables[TRIGGERED_BY]=cirrus" "https://nheko.im/api/v4/projects/2/trigger/pipeline" || true
-F token="${GITLAB_TRIGGER_TOKEN}"
-F ref="${CIRRUS_BRANCH}"
-F "variables[TRIGGER_BUILD_ID]=${CIRRUS_BUILD_ID}"
-F "variables[TRIGGERED_BY]=cirrus"
"https://nheko.im/api/v4/projects/2/trigger/pipeline"
binaries_artifacts: binaries_artifacts:
path: build/nheko.zip path: build/nheko.zip