Updated runners push logic
This commit is contained in:
parent
1a09db706a
commit
2401e19f34
|
|
@ -23,10 +23,10 @@ task:
|
|||
-var expected_runtimes_file="data/expected.$MACOS_VERSION.runtimes.txt" \
|
||||
templates/xcode.pkr.hcl
|
||||
push_script: |
|
||||
if [[ -z "$CIRRUS_CRON" ]]; then
|
||||
echo "Not a cron build, skipping pushing..."
|
||||
else
|
||||
if [[ -z "$CIRRUS_PR" ]]; then
|
||||
tart push "$MACOS_VERSION-xcode:runner" ghcr.io/cirruslabs/macos-runner:$MACOS_VERSION
|
||||
else
|
||||
echo "Skipping pushing for PR..."
|
||||
fi
|
||||
always:
|
||||
cleanup_script:
|
||||
|
|
|
|||
|
|
@ -46,6 +46,7 @@ def main(ctx):
|
|||
if env.get("CIRRUS_CRON") == "monthly":
|
||||
result += fs.read(".ci/cirrus.base.yml")
|
||||
result += fs.read(".ci/cirrus.xcode.yml")
|
||||
if env.get("CIRRUS_CRON") == "weekly" or changes_include(".ci/cirrus.runner.yml"):
|
||||
prForRunners = env.get("CIRRUS_PR") and changes_include(".ci/cirrus.runner.yml")
|
||||
if prForRunners:
|
||||
result += fs.read(".ci/cirrus.runner.yml")
|
||||
return result
|
||||
|
|
|
|||
Loading…
Reference in New Issue