-
Notifications
You must be signed in to change notification settings - Fork 128
Expand file tree
/
Copy pathbuild-premerge-buildbot-container.yml
More file actions
45 lines (41 loc) · 1.26 KB
/
build-premerge-buildbot-container.yml
File metadata and controls
45 lines (41 loc) · 1.26 KB
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: Build Premerge Buildbot Container
permissions:
contents: read
on:
push:
branches:
- main
paths:
- .github/workflows/build-premerge-buildbot-container.yml
- 'premerge/buildbot/**'
pull_request:
paths:
- .github/workflows/build-premerge-buildbot-container.yml
- 'premerge/buildbot/**'
jobs:
build-premerge-buildbot-container:
if: github.repository_owner == 'llvm'
runs-on: ubuntu-24.04
steps:
- name: Checkout LLVM Zorg
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
with:
sparse-checkout: premerge/buildbot
- name: Build Container
uses: llvm/llvm-project/.github/actions/build-container@f091be6d53e447391ca23142cf9d49b2654116d7
with:
container-name: premerge-buildbot
context: premerge/buildbot
push-premerge-buildbot-container:
if: github.event_name == 'push'
needs:
- build-premerge-buildbot-container
permissions:
packages: write
runs-on: ubuntu-24.04
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: llvm/llvm-project/.github/actions/push-container@f091be6d53e447391ca23142cf9d49b2654116d7
with:
token: ${{ secrets.GITHUB_TOKEN }}