Skip to content

Update [Github] Update GHA Dependencies #79

Update [Github] Update GHA Dependencies

Update [Github] Update GHA Dependencies #79

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@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1
with:
sparse-checkout: premerge/ops-container
- name: Build Container
uses: llvm/llvm-project/.github/actions/build-container@b0074209ed2e99c0c98c5a2b4a73f0566bf80c71
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@b0074209ed2e99c0c98c5a2b4a73f0566bf80c71
with:
token: ${{ secrets.GITHUB_TOKEN }}