Skip to content

[CI] Refactor LLVM commit processing script #86

[CI] Refactor LLVM commit processing script

[CI] Refactor LLVM commit processing script #86

name: Build Operations Metrics Container
permissions:
contents: read
on:
push:
branches:
- main
paths:
- .github/workflows/build-operations-metrics-container.yml
- 'premerge/ops-container/**'
pull_request:
paths:
- .github/workflows/build-operations-metrics-container.yml
- 'premerge/ops-container/**'
jobs:
build-operations-metrics-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/ops-container
- name: Build Container
uses: llvm/llvm-project/.github/actions/build-container@e6206d567b1d2d324d26465547348fd8a59e2f4e
with:
container-name: operations-metrics
context: premerge/ops-container
push-operations-metrics-container:
if: github.event_name == 'push'
needs:
- build-operations-metrics-container
permissions:
packages: write
runs-on: ubuntu-24.04
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: llvm/llvm-project/.github/actions/push-container@e6206d567b1d2d324d26465547348fd8a59e2f4e
with:
token: ${{ secrets.GITHUB_TOKEN }}