Skip to content

Bump the github-actions group with 3 updates #161

Bump the github-actions group with 3 updates

Bump the github-actions group with 3 updates #161

name: Publish benchmark images
on:
push:
branches: ['**']
tags: ['**']
paths:
- .github/**
- chart/**
- images/**
- python/**
jobs:
build_push_images:
name: Build and push benchmark images
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write # needed for signing the images with GitHub OIDC Token
packages: write # required for pushing container images
security-events: write # required for pushing SARIF files
strategy:
fail-fast: false
matrix:
include:
- component: discovery
- component: fio
- component: iperf
- component: mpi-benchmarks
- component: openfoam
- component: perftest
# TODO - need to fix this build
# - component: pytorch-benchmarks
steps:
- name: Check out the repository
uses: actions/checkout@v4
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Calculate metadata for image
id: image-meta
uses: docker/metadata-action@v5
with:
images: ghcr.io/stackhpc/kube-perftest-${{ matrix.component }}
# Produce the branch name or tag and the SHA as tags
tags: |
type=ref,event=branch
type=ref,event=tag
type=sha,prefix=
- name: Build and push image
uses: stackhpc/github-actions/docker-multiarch-build-push@master
with:
cache-key: ${{ matrix.component }}
context: ./images/${{ matrix.component }}
platforms: linux/amd64
push: true
tags: ${{ steps.image-meta.outputs.tags }}
labels: ${{ steps.image-meta.outputs.labels }}