Skip to content

Instantly share code, notes, and snippets.

@rjeczalik
Created December 11, 2013 22:12
Show Gist options
  • Save rjeczalik/7919389 to your computer and use it in GitHub Desktop.
Save rjeczalik/7919389 to your computer and use it in GitHub Desktop.
launchd job script for Gitlab-CI runner
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>EnableGlobbing</key>
<true/>
<key>KeepAlive</key>
<true/>
<key>Label</key>
<string>gitlab-ci-runner</string>
<key>ProgramArguments</key>
<array>
<string>bundle</string>
<string>exec</string>
<string>./bin/runner</string>
</array>
<key>EnvironmentVariables</key>
<dict>
<key>PATH</key>
<string>/Users/rjeczalik/.rbenv/shims:/usr/local/sbin:/Users/rjeczalik/opt/golang/go/bin:/Users/rjeczalik/opt/golang/bin:/usr/local/bin:/Users/rjeczalik/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin</string>
<key>GOROOT</key>
<string>/Users/rjeczalik/opt/golang/go</string>
<key>GOPATH</key>
<string>/Users/rjeczalik/opt/golang/pkg</string>
</dict>
<key>RunAtLoad</key>
<true/>
<key>WorkingDirectory</key>
<string>/Users/rjeczalik/opt/gitlab-ci-runner</string>
</dict>
</plist>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment