Watching Git branches without webhook, the new commits on each branch run scripts.
- Tower watch Git repogitory that you specified.
- You push a new commit. (force-push ok)
- Tower will find it by polling.
- Tower fetch it, run
.towerfile
that branch has. - Tower send notifications to
Slack
(required settings for now.)
Make config.json
for running Tower.
⚠️ Maybe Key will be changed.
{
"workingDirectoryPath" : "~/tower/repo-name",
"target" : {
"gitURL" : "[email protected]:your-org/your-repo",
"pathForShell" : null,
"branchMatchingPattern" : "version.*",
"maxConcurrentTaskCount" : 3
},
"slack" : {
"incomingWebhookURL" : "https://hooks.slack.com/services/....",
"channelIdentifierForLog" : "ABCD1234",
"channelIdentifierForNotification" : "ABCD1234"
}
}
#! /bin/sh
echo 'Hello Tower'
fastlane deploy
Swift 4.1
$ swift build