Skip to content

armgit / umami

Public Imported from GitHub
0

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.

Added Docker labels to manual build.

Mike Caoa6acd5e0990d
diff --git a/.github/workflows/cd-manual.yml b/.github/workflows/cd-manual.yml
index ac701fcc5..6fefd16c1 100644
--- a/.github/workflows/cd-manual.yml
+++ b/.github/workflows/cd-manual.yml
@@ -8,6 +8,20 @@ on:
description: Version
required: true
+env:
+ # set Docker OCI Labels
+ DOCKER_LABELS: >
+ org.opencontainers.image.title=${{github.event.repository.name}},
+ org.opencontainers.image.description="Umami is a simple, fast, privacy-focused alternative to Google Analytics",
+ org.opencontainers.image.vendor=${{github.repository_owner}},
+ org.opencontainers.image.licenses="MIT",
+ org.opencontainers.image.version=${{github.ref_name}},
+ org.opencontainers.image.source=${{github.server_url}}/${{github.repository}},
+ org.opencontainers.image.revision=${{github.sha}},
+ org.opencontainers.image.url="https://umami.is/",
+ org.opencontainers.image.documentation="https://umami.is/docs",
+ org.opencontainers.image.base.name="docker.io/library/node:18-alpine"
+
jobs:
build:
name: Build, push, and deploy
@@ -25,6 +39,7 @@ jobs:
with:
image: umami
tags: ${{ matrix.db-type }}-${{ inputs.version }}, ${{ matrix.db-type }}-latest
+ labels: $DOCKER_LABELS
buildArgs: DATABASE_TYPE=${{ matrix.db-type }}
registry: ghcr.io
multiPlatform: true