Skip to content

Commit 1bd0fcc

Browse files
authored
Update docker workflow
1 parent 3eaed1d commit 1bd0fcc

1 file changed

Lines changed: 12 additions & 5 deletions

File tree

.github/workflows/docker.yaml

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ name: Build Docker Image
22

33
on:
44
workflow_dispatch:
5+
inputs:
6+
tag:
7+
description: Tag for this image
8+
default: ''
59
release:
610
types: [published]
711
push:
@@ -14,13 +18,15 @@ env:
1418

1519
jobs:
1620
build:
17-
runs-on: ubuntu-latest
1821
strategy:
1922
fail-fast: false
2023
matrix:
21-
platform:
22-
- linux/amd64
23-
- linux/arm64
24+
include:
25+
- platform: linux/amd64
26+
runner: ubuntu-latest
27+
- platform: linux/arm64
28+
runner: ubuntu-24.04-arm
29+
runs-on: ${{ matrix.runner }}
2430
steps:
2531
- name: Prepare
2632
run: |
@@ -100,6 +106,7 @@ jobs:
100106
images: |
101107
${{ env.GITHUB_CR_REPO }}
102108
tags: |
109+
type=raw,value=${{ inputs.tag }},enable=${{ inputs.tag != '' }}
103110
type=ref,event=branch
104111
type=ref,event=pr
105112
type=semver,pattern={{version}}
@@ -122,4 +129,4 @@ jobs:
122129
123130
- name: Inspect image
124131
run: |
125-
docker buildx imagetools inspect ${{ env.GITHUB_CR_REPO }}:${{ env.DOCKER_METADATA_OUTPUT_VERSION }}
132+
docker buildx imagetools inspect ${{ env.GITHUB_CR_REPO }}:${{ env.DOCKER_METADATA_OUTPUT_VERSION }}

0 commit comments

Comments
 (0)