forked from server-app-test/Code-test
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcodemagic.yaml
More file actions
24 lines (24 loc) · 1.02 KB
/
codemagic.yaml
File metadata and controls
24 lines (24 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
workflows:
keep-render-app-alive:
name: Keep Render App Alive
# Define the environment (similar to runs-on in GitHub Actions)
environment:
# Codemagic uses predefined machine types; 'mac_mini_m1' is a common choice
# You can adjust this based on your needs
instance_type: mac_mini_m1
# Define triggering conditions
triggering:
events:
# Manual triggering via Codemagic UI
- push # This allows manual triggering; Codemagic doesn't have a direct "workflow_dispatch" equivalent
schedule:
# Run every 5 minutes (same as cron: '*/5 * * * *')
- cron: "*/5 * * * *"
scripts:
- name: Ping application URL
script: |
# Use curl to ping the URL, matching the GitHub Actions step
curl -s -o /dev/null -w "%{http_code}" https://database-iupv.onrender.com
# Optional: Define artifacts or publishing if needed (not present in the original workflow)
artifacts:
- "*.log" # Example: Collect logs if any are generated (optional)