Skip to content

Commit 086409e

Browse files
committed
fix build
1 parent 16d6d58 commit 086409e

File tree

1 file changed

+14
-4
lines changed

1 file changed

+14
-4
lines changed

.github/workflows/docker.yml

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,17 @@
11
name: Build Docker Images
22

33
on:
4-
push:
5-
tags:
6-
- "*.*.*"
4+
workflow_call:
5+
inputs:
6+
version:
7+
description: Version
8+
type: string
9+
required: true
10+
image:
11+
description: QEMU image
12+
type: string
13+
required: false
14+
default: tonistiigi/binfmt:latest
715

816
jobs:
917
build:
@@ -27,12 +35,14 @@ jobs:
2735
type=semver,pattern={{version}}
2836
- name: Set up QEMU
2937
uses: docker/setup-qemu-action@v3
38+
with:
39+
- image: ${{ inputs.image }}
3040

3141
- name: Set up Docker Buildx
3242
uses: docker/setup-buildx-action@v3
3343

3444
- name: Create .version file
35-
run: echo ${{ github.ref_name }} > .version
45+
run: echo ${{ inputs.version }} > .version
3646

3747
- name: Login to Docker Hub
3848
uses: docker/login-action@v3

0 commit comments

Comments
 (0)