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
BASE_PATH build stage only, added label
Francis Cao2309f407f23a
diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.ymlindex 296dda225..f25ab4f58 100644--- a/.github/workflows/cd.yml+++ b/.github/workflows/cd.yml@@ -24,6 +24,7 @@ jobs:contents: readpackages: writestrategy:+ fail-fast: falsematrix:include:- type: standard@@ -91,12 +92,15 @@ jobs:GHCR_TAGS="ghcr.io/${{ github.repository }}:$VERSION$SUFFIX"GHCR_TAGS="$GHCR_TAGS,ghcr.io/${{ github.repository }}:${MAJOR}.${MINOR}$SUFFIX"GHCR_TAGS="$GHCR_TAGS,ghcr.io/${{ github.repository }}:${MAJOR}$SUFFIX"- GHCR_TAGS="$GHCR_TAGS,ghcr.io/${{ github.repository }}:postgresql-latest$SUFFIX"-+DOCKER_TAGS="umamisoftware/umami:$VERSION$SUFFIX"DOCKER_TAGS="$DOCKER_TAGS,umamisoftware/umami:${MAJOR}.${MINOR}$SUFFIX"DOCKER_TAGS="$DOCKER_TAGS,umamisoftware/umami:${MAJOR}$SUFFIX"- DOCKER_TAGS="$DOCKER_TAGS,umamisoftware/umami:postgresql-latest$SUFFIX"++ if [[ -z "$SUFFIX" ]]; then+ GHCR_TAGS="$GHCR_TAGS,ghcr.io/${{ github.repository }}:postgresql-latest"+ DOCKER_TAGS="$DOCKER_TAGS,umamisoftware/umami:postgresql-latest"+ fi# Add latest tag based on trigger and inputif [[ "$REF_TYPE" == "tag" ]] || [[ "$INCLUDE_LATEST" == "true" ]]; thendiff --git a/Dockerfile b/Dockerfileindex a193f143b..29eddec96 100644--- a/Dockerfile+++ b/Dockerfile@@ -19,6 +19,7 @@ COPY docker/middleware.ts ./srcARG BASE_PATH=""ENV BASE_PATH=$BASE_PATH+LABEL org.opencontainers.image.base-path="$BASE_PATH"ENV NEXT_TELEMETRY_DISABLED=1ENV DATABASE_URL="postgresql://user:pass@localhost:5432/dummy"@@ -30,12 +31,10 @@ WORKDIR /appARG PRISMA_VERSION="6.19.0"ARG NODE_OPTIONS-ARG BASE_PATH=""ENV NODE_ENV=productionENV NEXT_TELEMETRY_DISABLED=1ENV NODE_OPTIONS=$NODE_OPTIONS-ENV BASE_PATH=$BASE_PATHRUN addgroup --system --gid 1001 nodejsRUN adduser --system --uid 1001 nextjs