-
Notifications
You must be signed in to change notification settings - Fork 3
54 lines (51 loc) · 1.51 KB
/
publish-benchmark-images.yaml
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
46
47
48
49
50
51
52
53
54
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
strategy:
matrix:
include:
- component: discovery
- component: fio
- component: iperf
- component: mpi-benchmarks
- component: openfoam
- component: perftest
steps:
- name: Check out the repository
uses: actions/checkout@v2
- name: Login to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Calculate metadata for image
id: image-meta
uses: docker/metadata-action@v3
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 }}