forked from forem/forem
-
Notifications
You must be signed in to change notification settings - Fork 0
28 lines (27 loc) · 1.27 KB
/
buildkite.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
name: Buildkite
on:
issue_comment:
types: [created]
jobs:
add_ci_label:
name: "Add CI label to pull request"
if: github.event.issue.pull_request != '' && contains(github.event.comment.body, '/ci') && (github.event.comment.author_association == 'MEMBER' || github.event.comment.author_association == 'OWNER' || github.event.comment.author_association == 'CONTRIBUTOR')
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-ecosystem/action-add-labels@v1
with:
github_token: ${{ secrets.github_token }}
labels: ci
build_containers:
name: "Run forem/build-containers pipeline"
if: github.event.issue.pull_request != '' && contains(github.event.comment.body, '/ci') && (github.event.comment.author_association == 'MEMBER' || github.event.comment.author_association == 'OWNER' || github.event.comment.author_association == 'CONTRIBUTOR')
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: ./scripts/create_buildkite_pr_build.sh
env:
BUILDKITE_API_ACCESS_TOKEN: ${{ secrets.buildkite_api_access_token }}
PIPELINE: "forem/build-containers"
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PULL_REQUEST_ID: ${{ github.event.issue.number }}