Skip to content

Instantly share code, notes, and snippets.

@lipka
Last active November 7, 2018 15:41
Show Gist options
  • Save lipka/0f72290cbf3724d46821434a782a1562 to your computer and use it in GitHub Desktop.
Save lipka/0f72290cbf3724d46821434a782a1562 to your computer and use it in GitHub Desktop.
Tink's Buildkite and Fastlane setup for CI/CD
1. Install Xcode (available in the Mac App Store)
2. Install [Brew](https://brew.sh)
3. Install [Cocoapods](https://cocoapods.org)
4. Install [Fastlane](https://docs.fastlane.tools)
5. In Xcode, make sure that under Preferences/Locations the Command Line Tools field is not empty
6. Add provisoning profiles and certificates
7. Install [Buildkite agent](https://buildkite.com/docs/agent/v3/osx)
* `brew tap buildkite/buildkite`
* `brew install --token='INSERT-YOUR-AGENT-TOKEN-HERE' buildkite-agent`
* Run `brew info buildkite-agent` and execute the command displayed at the end to autostart the agent
8. If you have a secrets file for your Fastlane setup
* Trigger a build for all the lanes on the new build machine
* Add Fastlane secrets to every generated lane folder in `/usr/local/var/buildkite-agent/builds/AGENT-NAME/TEAM-NAME/`
9. Verify that everything works and move the machine into server room
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment