Umami is a privacy-first web and product analytics platform. Traffic, campaigns, behavior, conversions, and revenue in one place. No cookies, no surveillance, self-hosted or in the cloud.
TypeScript analyticsaudience-segmentationchartscohort-analysisgoogle-analyticsproduct-analyticsstatisticsuser-journeyweb-analytics
Updated cd script.
Mike Caoa90b7881387a
diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.ymlindex 1e070a7c2..3098d314b 100644--- a/.github/workflows/cd.yml+++ b/.github/workflows/cd.yml@@ -6,8 +6,8 @@ on:- 'v*.*.*'workflow_dispatch:inputs:- manual_tag:- description: 'Optional image tag (e.g. 1.2.3, beta, nightly)'+ version:+ description: 'Optional image version (e.g. 3.0.0, beta)'required: falsedefault: ''@@ -23,7 +23,6 @@ jobs:steps:- uses: actions/checkout@v5- # Install cosign (for image signing)- name: Install cosignuses: sigstore/cosign-installer@v3@@ -45,6 +44,21 @@ jobs:username: ${{ github.actor }}password: ${{ secrets.GITHUB_TOKEN }}+ # Normalize manual input if provided+ - name: Normalize manual version+ id: normalize+ run: |+ INPUT="${{ github.event.inputs.version }}"+ if [[ -n "$INPUT" ]]; then+ # Strip leading v if present+ VERSION="${INPUT#v}"+ MAJOR=$(echo "$VERSION" | cut -d. -f1)+ MINOR=$(echo "$VERSION" | cut -d. -f2)+ echo "version_tags=${VERSION},${MAJOR}.${MINOR},${MAJOR}" >> $GITHUB_ENV+ else+ echo "version_tags=" >> $GITHUB_ENV+ fi+- name: Extract Docker metadataid: metauses: docker/metadata-action@v5@@ -55,11 +69,18 @@ jobs:flavor: |latest=autotags: |+ # Semver tags from real Git tagstype=semver,pattern={{version}}type=semver,pattern={{major}}.{{minor}}type=semver,pattern={{major}}++ # Manual input derived tags+ type=raw,value=${{ env.version_tags }},enable=${{ env.version_tags != '' }}++ # Fallbacks for branches/PRstype=ref,event=branch- type=raw,value=latest,enable=${{ github.event_name == 'workflow_dispatch' }}+ type=ref,event=pr+ type=sha- name: Build and push Docker imageid: build-and-push@@ -73,7 +94,6 @@ jobs:cache-from: type=ghacache-to: type=gha,mode=max- # Sign the published image digest- name: Sign the published Docker imageenv:TAGS: ${{ steps.meta.outputs.tags }}