Skip to content

Privacy-first password manager with built-in email aliasing. Fully encrypted and self-hostable.

Define labels and annotations per Docker image (#1179)

Leendert de Borst7559f0aff425
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 9f864b842..ca4e7767f 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -130,170 +130,246 @@ jobs:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- - name: Extract metadata for base tags
- id: meta
+ - name: Extract metadata for Postgres image
+ id: postgres-meta
uses: docker/metadata-action@v5
+ env:
+ DOCKER_METADATA_ANNOTATIONS_LEVELS: manifest,index
with:
- # Using a placeholder image name, we'll generate the actual tags per container
- images: placeholder
+ images: ghcr.io/aliasvault/postgres
+ tags: |
+ type=raw,value=latest,enable=${{ github.event_name == 'release' && github.event.release.prerelease == false }}
+ type=semver,pattern={{version}},enable=${{ github.event_name == 'release' || github.ref_type == 'tag' }}
+ type=ref,event=tag,enable=${{ github.ref_type == 'tag' }}
+ type=ref,event=branch,enable=${{ github.ref_type == 'branch' }}
+ type=raw,value={{branch}}-{{sha}},enable=${{ github.ref_type == 'branch' }}
+ labels: |
+ org.opencontainers.image.title=AliasVault PostgreSQL
+ org.opencontainers.image.description=PostgreSQL database for AliasVault. Part of multi-container setup and can be deployed via install.sh (see docs.aliasvault.net)
+ annotations: |
+ org.opencontainers.image.description=PostgreSQL database for AliasVault. Part of multi-container setup and can be deployed via install.sh (see docs.aliasvault.net)
+
+ - name: Extract metadata for API image
+ id: api-meta
+ uses: docker/metadata-action@v5
+ env:
+ DOCKER_METADATA_ANNOTATIONS_LEVELS: manifest,index
+ with:
+ images: ghcr.io/aliasvault/api
+ tags: |
+ type=raw,value=latest,enable=${{ github.event_name == 'release' && github.event.release.prerelease == false }}
+ type=semver,pattern={{version}},enable=${{ github.event_name == 'release' || github.ref_type == 'tag' }}
+ type=ref,event=tag,enable=${{ github.ref_type == 'tag' }}
+ type=ref,event=branch,enable=${{ github.ref_type == 'branch' }}
+ type=raw,value={{branch}}-{{sha}},enable=${{ github.ref_type == 'branch' }}
+ labels: |
+ org.opencontainers.image.title=AliasVault API
+ org.opencontainers.image.description=REST API backend for AliasVault. Part of multi-container setup and can be deployed via install.sh (see docs.aliasvault.net)
+ annotations: |
+ org.opencontainers.image.description=REST API backend for AliasVault. Part of multi-container setup and can be deployed via install.sh (see docs.aliasvault.net)
+
+ - name: Extract metadata for Client image
+ id: client-meta
+ uses: docker/metadata-action@v5
+ env:
+ DOCKER_METADATA_ANNOTATIONS_LEVELS: manifest,index
+ with:
+ images: ghcr.io/aliasvault/client
+ tags: |
+ type=raw,value=latest,enable=${{ github.event_name == 'release' && github.event.release.prerelease == false }}
+ type=semver,pattern={{version}},enable=${{ github.event_name == 'release' || github.ref_type == 'tag' }}
+ type=ref,event=tag,enable=${{ github.ref_type == 'tag' }}
+ type=ref,event=branch,enable=${{ github.ref_type == 'branch' }}
+ type=raw,value={{branch}}-{{sha}},enable=${{ github.ref_type == 'branch' }}
+ labels: |
+ org.opencontainers.image.title=AliasVault Client
+ org.opencontainers.image.description=Blazor WebAssembly client UI for AliasVault. Part of multi-container setup and can be deployed via install.sh (see docs.aliasvault.net)
+ annotations: |
+ org.opencontainers.image.description=Blazor WebAssembly client UI for AliasVault. Part of multi-container setup and can be deployed via install.sh (see docs.aliasvault.net)
+
+ - name: Extract metadata for Admin image
+ id: admin-meta
+ uses: docker/metadata-action@v5
+ env:
+ DOCKER_METADATA_ANNOTATIONS_LEVELS: manifest,index
+ with:
+ images: ghcr.io/aliasvault/admin
+ tags: |
+ type=raw,value=latest,enable=${{ github.event_name == 'release' && github.event.release.prerelease == false }}
+ type=semver,pattern={{version}},enable=${{ github.event_name == 'release' || github.ref_type == 'tag' }}
+ type=ref,event=tag,enable=${{ github.ref_type == 'tag' }}
+ type=ref,event=branch,enable=${{ github.ref_type == 'branch' }}
+ type=raw,value={{branch}}-{{sha}},enable=${{ github.ref_type == 'branch' }}
+ labels: |
+ org.opencontainers.image.title=AliasVault Admin
+ org.opencontainers.image.description=Admin portal for AliasVault. Part of multi-container setup and can be deployed via install.sh (see docs.aliasvault.net)
+ annotations: |
+ org.opencontainers.image.description=Admin portal for AliasVault. Part of multi-container setup and can be deployed via install.sh (see docs.aliasvault.net)
+
+ - name: Extract metadata for Reverse Proxy image
+ id: reverse-proxy-meta
+ uses: docker/metadata-action@v5
+ env:
+ DOCKER_METADATA_ANNOTATIONS_LEVELS: manifest,index
+ with:
+ images: ghcr.io/aliasvault/reverse-proxy
+ tags: |
+ type=raw,value=latest,enable=${{ github.event_name == 'release' && github.event.release.prerelease == false }}
+ type=semver,pattern={{version}},enable=${{ github.event_name == 'release' || github.ref_type == 'tag' }}
+ type=ref,event=tag,enable=${{ github.ref_type == 'tag' }}
+ type=ref,event=branch,enable=${{ github.ref_type == 'branch' }}
+ type=raw,value={{branch}}-{{sha}},enable=${{ github.ref_type == 'branch' }}
+ labels: |
+ org.opencontainers.image.title=AliasVault Reverse Proxy
+ org.opencontainers.image.description=Nginx reverse proxy for AliasVault. Part of multi-container setup and can be deployed via install.sh (see docs.aliasvault.net)
+ annotations: |
+ org.opencontainers.image.description=Nginx reverse proxy for AliasVault. Part of multi-container setup and can be deployed via install.sh (see docs.aliasvault.net)
+
+ - name: Extract metadata for SMTP image
+ id: smtp-meta
+ uses: docker/metadata-action@v5
+ env:
+ DOCKER_METADATA_ANNOTATIONS_LEVELS: manifest,index
+ with:
+ images: ghcr.io/aliasvault/smtp
+ tags: |
+ type=raw,value=latest,enable=${{ github.event_name == 'release' && github.event.release.prerelease == false }}
+ type=semver,pattern={{version}},enable=${{ github.event_name == 'release' || github.ref_type == 'tag' }}
+ type=ref,event=tag,enable=${{ github.ref_type == 'tag' }}
+ type=ref,event=branch,enable=${{ github.ref_type == 'branch' }}
+ type=raw,value={{branch}}-{{sha}},enable=${{ github.ref_type == 'branch' }}
+ labels: |
+ org.opencontainers.image.title=AliasVault SMTP Service
+ org.opencontainers.image.description=SMTP service for AliasVault. Part of multi-container setup and can be deployed via install.sh (see docs.aliasvault.net)
+ annotations: |
+ org.opencontainers.image.description=SMTP service for AliasVault. Part of multi-container setup and can be deployed via install.sh (see docs.aliasvault.net)
+
+ - name: Extract metadata for TaskRunner image
+ id: task-runner-meta
+ uses: docker/metadata-action@v5
+ env:
+ DOCKER_METADATA_ANNOTATIONS_LEVELS: manifest,index
+ with:
+ images: ghcr.io/aliasvault/task-runner
+ tags: |
+ type=raw,value=latest,enable=${{ github.event_name == 'release' && github.event.release.prerelease == false }}
+ type=semver,pattern={{version}},enable=${{ github.event_name == 'release' || github.ref_type == 'tag' }}
+ type=ref,event=tag,enable=${{ github.ref_type == 'tag' }}
+ type=ref,event=branch,enable=${{ github.ref_type == 'branch' }}
+ type=raw,value={{branch}}-{{sha}},enable=${{ github.ref_type == 'branch' }}
+ labels: |
+ org.opencontainers.image.title=AliasVault TaskRunner
+ org.opencontainers.image.description=Background task runner for AliasVault. Part of multi-container setup and can be deployed via install.sh (see docs.aliasvault.net)
+ annotations: |
+ org.opencontainers.image.description=Background task runner for AliasVault. Part of multi-container setup and can be deployed via install.sh (see docs.aliasvault.net)
+
+ - name: Extract metadata for InstallCLI image
+ id: installcli-meta
+ uses: docker/metadata-action@v5
+ env:
+ DOCKER_METADATA_ANNOTATIONS_LEVELS: manifest,index
+ with:
+ images: ghcr.io/aliasvault/installcli
tags: |
- # For release events with latest tag (only for non-prerelease)
type=raw,value=latest,enable=${{ github.event_name == 'release' && github.event.release.prerelease == false }}
- # semver tags for releases (works for prerelease and normal release)
type=semver,pattern={{version}},enable=${{ github.event_name == 'release' || github.ref_type == 'tag' }}
- # For tags, use tag name
type=ref,event=tag,enable=${{ github.ref_type == 'tag' }}
- # For branches, use branch name and branch name + short SHA for uniqueness
type=ref,event=branch,enable=${{ github.ref_type == 'branch' }}
type=raw,value={{branch}}-{{sha}},enable=${{ github.ref_type == 'branch' }}
+ labels: |
+ org.opencontainers.image.title=AliasVault Install CLI
+ org.opencontainers.image.description=Installation and configuration CLI for AliasVault. Used by install.sh for setup and configuration, not deployed as part of the application stack
+ annotations: |
+ org.opencontainers.image.description=Installation and configuration CLI for AliasVault. Used by install.sh for setup and configuration, not deployed as part of the application stack
- - name: Generate tags for containers
- id: tags
- run: |
- # Extract just the tag values (without the image prefix)
- TAGS="${{ steps.meta.outputs.tags }}"
- TAG_VALUES=$(echo "$TAGS" | sed 's|^[^:]*:||' | tr '\n' ' ')
-
- # Generate full image tags for each container
- for container in postgres api client admin reverse-proxy smtp task-runner installcli; do
- CONTAINER_TAGS=""
- for tag in $TAG_VALUES; do
- if [ -n "$CONTAINER_TAGS" ]; then
- CONTAINER_TAGS="${CONTAINER_TAGS},"
- fi
- CONTAINER_TAGS="${CONTAINER_TAGS}ghcr.io/aliasvault/${container}:${tag}"
- done
- # Output the tags for each container
- echo "${container//-/_}=${CONTAINER_TAGS}" >> $GITHUB_OUTPUT
- done
- name: Build and push Postgres image
- uses: docker/build-push-action@v5
+ uses: docker/build-push-action@v6
with:
context: .
file: apps/server/Databases/AliasServerDb/Dockerfile
platforms: linux/amd64,linux/arm64/v8
push: true
- tags: ${{ steps.tags.outputs.postgres }}
- labels: |
- ${{ steps.meta.outputs.labels }}
- org.opencontainers.image.title=AliasVault PostgreSQL
- org.opencontainers.image.description=PostgreSQL database for AliasVault. Part of multi-container setup and can be deployed via install.sh (see docs.aliasvault.net)
- annotations: |
- org.opencontainers.image.title=AliasVault PostgreSQL
- org.opencontainers.image.description=PostgreSQL database for AliasVault. Part of multi-container setup and can be deployed via install.sh (see docs.aliasvault.net)
+ tags: ${{ steps.postgres-meta.outputs.tags }}
+ labels: ${{ steps.postgres-meta.outputs.labels }}
+ annotations: ${{ steps.postgres-meta.outputs.annotations }}
- name: Build and push API image
- uses: docker/build-push-action@v5
+ uses: docker/build-push-action@v6
with:
context: .
file: apps/server/AliasVault.Api/Dockerfile
platforms: linux/amd64,linux/arm64/v8
push: true
- tags: ${{ steps.tags.outputs.api }}
- labels: |
- ${{ steps.meta.outputs.labels }}
- org.opencontainers.image.title=AliasVault API
- org.opencontainers.image.description=REST API backend for AliasVault. Part of multi-container setup and can be deployed via install.sh (see docs.aliasvault.net)
- annotations: |
- org.opencontainers.image.title=AliasVault API
- org.opencontainers.image.description=REST API backend for AliasVault. Part of multi-container setup and can be deployed via install.sh (see docs.aliasvault.net)
+ tags: ${{ steps.api-meta.outputs.tags }}
+ labels: ${{ steps.api-meta.outputs.labels }}
+ annotations: ${{ steps.api-meta.outputs.annotations }}
- name: Build and push Client image
- uses: docker/build-push-action@v5
+ uses: docker/build-push-action@v6
with:
context: .
file: apps/server/AliasVault.Client/Dockerfile
platforms: linux/amd64,linux/arm64/v8
push: true
- tags: ${{ steps.tags.outputs.client }}
- labels: |
- ${{ steps.meta.outputs.labels }}
- org.opencontainers.image.title=AliasVault Client
- org.opencontainers.image.description=Blazor WebAssembly client UI for AliasVault. Part of multi-container setup and can be deployed via install.sh (see docs.aliasvault.net)
- annotations: |
- org.opencontainers.image.title=AliasVault Client
- org.opencontainers.image.description=Blazor WebAssembly client UI for AliasVault. Part of multi-container setup and can be deployed via install.sh (see docs.aliasvault.net)
+ tags: ${{ steps.client-meta.outputs.tags }}
+ labels: ${{ steps.client-meta.outputs.labels }}
+ annotations: ${{ steps.client-meta.outputs.annotations }}
- name: Build and push Admin image
- uses: docker/build-push-action@v5
+ uses: docker/build-push-action@v6
with:
context: .
file: apps/server/AliasVault.Admin/Dockerfile
platforms: linux/amd64,linux/arm64/v8
push: true
- tags: ${{ steps.tags.outputs.admin }}
- labels: |
- ${{ steps.meta.outputs.labels }}
- org.opencontainers.image.title=AliasVault Admin
- org.opencontainers.image.description=Admin portal for AliasVault. Part of multi-container setup and can be deployed via install.sh (see docs.aliasvault.net)
- annotations: |
- org.opencontainers.image.title=AliasVault Admin
- org.opencontainers.image.description=Admin portal for AliasVault. Part of multi-container setup and can be deployed via install.sh (see docs.aliasvault.net)
+ tags: ${{ steps.admin-meta.outputs.tags }}
+ labels: ${{ steps.admin-meta.outputs.labels }}
+ annotations: ${{ steps.admin-meta.outputs.annotations }}
- name: Build and push Reverse Proxy image
- uses: docker/build-push-action@v5
+ uses: docker/build-push-action@v6
with:
context: .
file: apps/server/Dockerfile
platforms: linux/amd64,linux/arm64/v8
push: true
- tags: ${{ steps.tags.outputs.reverse-proxy }}
- labels: |
- ${{ steps.meta.outputs.labels }}
- org.opencontainers.image.title=AliasVault Reverse Proxy
- org.opencontainers.image.description=Nginx reverse proxy for AliasVault. Part of multi-container setup and can be deployed via install.sh (see docs.aliasvault.net)
- annotations: |
- org.opencontainers.image.title=AliasVault Reverse Proxy
- org.opencontainers.image.description=Nginx reverse proxy for AliasVault. Part of multi-container setup and can be deployed via install.sh (see docs.aliasvault.net)
+ tags: ${{ steps.reverse-proxy-meta.outputs.tags }}
+ labels: ${{ steps.reverse-proxy-meta.outputs.labels }}
+ annotations: ${{ steps.reverse-proxy-meta.outputs.annotations }}
- name: Build and push SMTP image
- uses: docker/build-push-action@v5
+ uses: docker/build-push-action@v6
with:
context: .
file: apps/server/Services/AliasVault.SmtpService/Dockerfile
platforms: linux/amd64,linux/arm64/v8
push: true
- tags: ${{ steps.tags.outputs.smtp }}
- labels: |
- ${{ steps.meta.outputs.labels }}
- org.opencontainers.image.title=AliasVault SMTP Service
- org.opencontainers.image.description=SMTP service for AliasVault. Part of multi-container setup and can be deployed via install.sh (see docs.aliasvault.net)
- annotations: |
- org.opencontainers.image.title=AliasVault SMTP Service
- org.opencontainers.image.description=SMTP service for AliasVault. Part of multi-container setup and can be deployed via install.sh (see docs.aliasvault.net)
+ tags: ${{ steps.smtp-meta.outputs.tags }}
+ labels: ${{ steps.smtp-meta.outputs.labels }}
+ annotations: ${{ steps.smtp-meta.outputs.annotations }}
- name: Build and push TaskRunner image
- uses: docker/build-push-action@v5
+ uses: docker/build-push-action@v6
with:
context: .
file: apps/server/Services/AliasVault.TaskRunner/Dockerfile
platforms: linux/amd64,linux/arm64/v8
push: true
- tags: ${{ steps.tags.outputs.task-runner }}
- labels: |
- ${{ steps.meta.outputs.labels }}
- org.opencontainers.image.title=AliasVault TaskRunner
- org.opencontainers.image.description=Background task runner for AliasVault. Part of multi-container setup and can be deployed via install.sh (see docs.aliasvault.net)
- annotations: |
- org.opencontainers.image.title=AliasVault TaskRunner
- org.opencontainers.image.description=Background task runner for AliasVault. Part of multi-container setup and can be deployed via install.sh (see docs.aliasvault.net)
+ tags: ${{ steps.task-runner-meta.outputs.tags }}
+ labels: ${{ steps.task-runner-meta.outputs.labels }}
+ annotations: ${{ steps.task-runner-meta.outputs.annotations }}
- name: Build and push InstallCli image
- uses: docker/build-push-action@v5
+ uses: docker/build-push-action@v6
with:
context: .
file: apps/server/Utilities/AliasVault.InstallCli/Dockerfile
platforms: linux/amd64,linux/arm64/v8
push: true
- tags: ${{ steps.tags.outputs.installcli }}
- labels: |
- ${{ steps.meta.outputs.labels }}
- org.opencontainers.image.title=AliasVault Install CLI
- org.opencontainers.image.description=Installation and configuration CLI for AliasVault. Used by install.sh for setup and configuration, not deployed as part of the application stack
- annotations: |
- org.opencontainers.image.title=AliasVault Install CLI
- org.opencontainers.image.description=Installation and configuration CLI for AliasVault. Used by install.sh for setup and configuration, not deployed as part of the application stack
+ tags: ${{ steps.installcli-meta.outputs.tags }}
+ labels: ${{ steps.installcli-meta.outputs.labels }}
+ annotations: ${{ steps.installcli-meta.outputs.annotations }}
build-and-push-docker-all-in-one:
if: github.event_name == 'release' || inputs.build_all_in_one
@@ -328,6 +404,8 @@ jobs:
- name: Extract metadata for all-in-one image
id: meta
uses: docker/metadata-action@v5
+ env:
+ DOCKER_METADATA_ANNOTATIONS_LEVELS: manifest,index
with:
images: |
ghcr.io/aliasvault/aliasvault
@@ -342,19 +420,19 @@ jobs:
# For branches, use branch name and branch name + short SHA for uniqueness
type=ref,event=branch,enable=${{ github.ref_type == 'branch' }}
type=raw,value={{branch}}-{{sha}},enable=${{ github.ref_type == 'branch' }}
+ labels: |
+ org.opencontainers.image.title=AliasVault All-in-One
+ org.opencontainers.image.description=Self-contained AliasVault server including web app, with all services bundled using s6-overlay. Single container solution for easy deployment (see docs.aliasvault.net).
+ annotations: |
+ org.opencontainers.image.description=Self-contained AliasVault server including web app, with all services bundled using s6-overlay. Single container solution for easy deployment (see docs.aliasvault.net).
- name: Build and push all-in-one image
- uses: docker/build-push-action@v5
+ uses: docker/build-push-action@v6
with:
context: .
file: dockerfiles/all-in-one/Dockerfile
platforms: linux/amd64,linux/arm64/v8
push: true
tags: ${{ steps.meta.outputs.tags }}
- labels: |
- ${{ steps.meta.outputs.labels }}
- org.opencontainers.image.title=AliasVault All-in-One
- org.opencontainers.image.description=Self-contained AliasVault server including web app, with all services bundled using s6-overlay. Single container solution for easy deployment (see docs.aliasvault.net).
- annotations: |
- org.opencontainers.image.title=AliasVault All-in-One
- org.opencontainers.image.description=Self-contained AliasVault server including web app, with all services bundled using s6-overlay. Single container solution for easy deployment (see docs.aliasvault.net).
+ labels: ${{ steps.meta.outputs.labels }}
+ annotations: ${{ steps.meta.outputs.annotations }}