Skip to content

Commit 276e83b

Browse files
committed
Update push-to-github-packages.yaml
1 parent 990317a commit 276e83b

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.github/workflows/push-to-github-packages.yaml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ on:
44
release:
55
types: [published]
66
workflow_dispatch:
7+
inputs:
8+
version:
9+
description: 'Version tag (e.g., 2509.1)'
10+
required: true
11+
type: string
712

813
jobs:
914
build-and-push:
@@ -45,8 +50,8 @@ jobs:
4550
ghcr.io/${{ github.repository_owner }}/mailarchiver
4651
tags: |
4752
type=raw,value=latest
48-
type=raw,value=${{ github.event.release.tag_name }}
49-
type=match,pattern=\d{4}\.\d+,group=0
53+
type=raw,value=${{ github.event.release.tag_name }},enable=${{ github.event_name == 'release' }}
54+
type=raw,value=${{ inputs.version }},enable=${{ github.event_name == 'workflow_dispatch' }}
5055
5156
- name: Build and push Docker image
5257
id: docker_build

0 commit comments

Comments
 (0)