Skip to content

Commit 7bea47d

Browse files
committed
Bumped version v3.0.3. Updated workflow.
1 parent e9cdaba commit 7bea47d

File tree

2 files changed

+17
-6
lines changed

2 files changed

+17
-6
lines changed

.github/workflows/cd.yml

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,18 @@ name: Create docker images
33
on:
44
push:
55
tags:
6-
- 'v*.*.*'
6+
- "v*.*.*"
77
workflow_dispatch:
88
inputs:
99
version:
10-
description: 'Optional image version (e.g. 3.0.0, v3.0.0, or 3.0.0-beta.1)'
10+
description: "Optional image version (e.g. 3.0.0, v3.0.0, or 3.0.0-beta.1)"
1111
required: false
12-
default: ''
12+
default: ""
13+
include_latest:
14+
description: "Include latest tag"
15+
required: false
16+
type: boolean
17+
default: true
1318

1419
jobs:
1520
build:
@@ -46,6 +51,7 @@ jobs:
4651
INPUT="${{ github.event.inputs.version }}"
4752
REF_TYPE="${{ github.ref_type }}"
4853
REF_NAME="${{ github.ref_name }}"
54+
INCLUDE_LATEST="${{ github.event.inputs.include_latest }}"
4955
5056
# Determine version source
5157
if [[ -n "$INPUT" ]]; then
@@ -66,8 +72,13 @@ jobs:
6672
# prerelease: only version tag
6773
TAGS="$VERSION"
6874
else
69-
# stable release: version + hierarchy + latest
70-
TAGS="$VERSION,${MAJOR}.${MINOR},${MAJOR},postgresql-latest,latest"
75+
# stable release: version + hierarchy
76+
TAGS="$VERSION,${MAJOR}.${MINOR},${MAJOR},postgresql-latest"
77+
78+
# Add latest tag based on trigger and input
79+
if [[ "$REF_TYPE" == "tag" ]] || [[ "$INCLUDE_LATEST" == "true" ]]; then
80+
TAGS="${TAGS},latest"
81+
fi
7182
fi
7283
else
7384
# Non-tag build (e.g. from main branch)

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "umami",
3-
"version": "3.0.2",
3+
"version": "3.0.3",
44
"description": "A modern, privacy-focused alternative to Google Analytics.",
55
"author": "Umami Software, Inc. <hello@umami.is>",
66
"license": "MIT",

0 commit comments

Comments
 (0)