Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
#!/bin/bash
set -e
[[ -n "${APP_SLUG}" ]] || { echo "APP_SLUG env var needs to be set"; exit 1; }
[[ -n "${ACCESS_TOKEN}" ]] || { echo "ACCESS_TOKEN env var needs to be set"; exit 1; }
INSTANCE="akvoflow-uat1"
curl -X POST -H "Authorization: ${ACCESS_TOKEN}" "https://api.bitrise.io/v0.1/apps/${APP_SLUG}/builds" -d \
'{
"hook_info": {
"type": "bitrise"
},
"build_params": {
"branch": "master",
"skip_git_status_report": "true",
"workflow_id": "DeployInstance",
"environments":[
{"mapped_to":"INSTANCE","value":"'${INSTANCE}'","is_expand":false}
]
}
}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.