forked from topolvm/topolvm
-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (42 loc) · 1.15 KB
/
build-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
on:
workflow_call:
inputs:
topolvm_version:
description: "TopoLVM version"
default: "devel"
type: string
image_tag:
description: "Image tag"
default: "latest"
type: string
image_prefix:
description: "Image prefix"
default: ""
type: string
push:
description: "Push images"
default: "false"
type: string
jobs:
build-images:
name: "build-images"
runs-on: "ubuntu-20.04"
strategy:
fail-fast: true
matrix:
image:
- "normal"
- "with-sidecar"
steps:
- uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login registry
if: ${{ inputs.push == 'true' }}
run: echo ${{ secrets.GITHUB_TOKEN }} | docker login ghcr.io -u ${{ github.actor }} --password-stdin
- run: make multi-platform-image-${{ matrix.image }}
env:
TOPOLVM_VERSION: ${{ inputs.topolvm_version }}
IMAGE_TAG: ${{ inputs.image_tag }}
IMAGE_PREFIX: ${{ inputs.image_prefix }}
PUSH: ${{ inputs.push }}