mirror of
https://github.com/umami-software/umami.git
synced 2026-02-03 20:27:13 +01:00
Bumped version v3.0.3. Updated workflow.
This commit is contained in:
parent
e9cdabab5a
commit
7bea47d9e8
2 changed files with 17 additions and 6 deletions
21
.github/workflows/cd.yml
vendored
21
.github/workflows/cd.yml
vendored
|
|
@ -3,13 +3,18 @@ name: Create docker images
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
tags:
|
tags:
|
||||||
- 'v*.*.*'
|
- "v*.*.*"
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
inputs:
|
inputs:
|
||||||
version:
|
version:
|
||||||
description: 'Optional image version (e.g. 3.0.0, v3.0.0, or 3.0.0-beta.1)'
|
description: "Optional image version (e.g. 3.0.0, v3.0.0, or 3.0.0-beta.1)"
|
||||||
required: false
|
required: false
|
||||||
default: ''
|
default: ""
|
||||||
|
include_latest:
|
||||||
|
description: "Include latest tag"
|
||||||
|
required: false
|
||||||
|
type: boolean
|
||||||
|
default: true
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
|
@ -46,6 +51,7 @@ jobs:
|
||||||
INPUT="${{ github.event.inputs.version }}"
|
INPUT="${{ github.event.inputs.version }}"
|
||||||
REF_TYPE="${{ github.ref_type }}"
|
REF_TYPE="${{ github.ref_type }}"
|
||||||
REF_NAME="${{ github.ref_name }}"
|
REF_NAME="${{ github.ref_name }}"
|
||||||
|
INCLUDE_LATEST="${{ github.event.inputs.include_latest }}"
|
||||||
|
|
||||||
# Determine version source
|
# Determine version source
|
||||||
if [[ -n "$INPUT" ]]; then
|
if [[ -n "$INPUT" ]]; then
|
||||||
|
|
@ -66,8 +72,13 @@ jobs:
|
||||||
# prerelease: only version tag
|
# prerelease: only version tag
|
||||||
TAGS="$VERSION"
|
TAGS="$VERSION"
|
||||||
else
|
else
|
||||||
# stable release: version + hierarchy + latest
|
# stable release: version + hierarchy
|
||||||
TAGS="$VERSION,${MAJOR}.${MINOR},${MAJOR},postgresql-latest,latest"
|
TAGS="$VERSION,${MAJOR}.${MINOR},${MAJOR},postgresql-latest"
|
||||||
|
|
||||||
|
# Add latest tag based on trigger and input
|
||||||
|
if [[ "$REF_TYPE" == "tag" ]] || [[ "$INCLUDE_LATEST" == "true" ]]; then
|
||||||
|
TAGS="${TAGS},latest"
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
# Non-tag build (e.g. from main branch)
|
# Non-tag build (e.g. from main branch)
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "umami",
|
"name": "umami",
|
||||||
"version": "3.0.2",
|
"version": "3.0.3",
|
||||||
"description": "A modern, privacy-focused alternative to Google Analytics.",
|
"description": "A modern, privacy-focused alternative to Google Analytics.",
|
||||||
"author": "Umami Software, Inc. <hello@umami.is>",
|
"author": "Umami Software, Inc. <hello@umami.is>",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue