Compare commits

...
Author SHA1 Message Date
Omar Amin b48c9984a2 Merge branch 'main' into feature/docker_labels 2026-08-18 16:09:29 +03:00
Florian Asche 6e5ca61911 ci(docker): implement OCI image annotations in CI workflows
Update GitHub Actions workflows to inject OCI labels during the image
build process. This moves dynamic metadata management from the
Dockerfile to the CI pipeline, ensuring consistent labeling for
nightly and PR builds.
2026-07-18 19:12:07 +02:00
Florian Asche b74ed0fc36 build(docker): add org.opencontainers.image.base.name label
Add the base image name to the Dockerfile labels to comply with
Open Container Initiative (OCI) annotations.
2026-07-18 18:43:35 +02:00
Florian Asche 31dce447fb Merge branch 'main' into feature/docker_labels 2026-07-18 18:23:06 +02:00
Omar Amin bfafa00e28 Merge branch 'main' into feature/docker_labels 2026-07-16 03:59:02 +03:00
Florian Asche 796b9ca373 Merge branch 'main' into feature/docker_labels 2026-07-15 19:28:44 +02:00
Omar Amin 4737110ff5 Merge branch 'main' into feature/docker_labels 2026-07-04 00:43:01 +03:00
Omar Amin e4ccb0b499 Merge branch 'main' into feature/docker_labels 2026-05-28 19:25:08 +03:00
Omar Amin b40e03e7f0 Merge branch 'main' into feature/docker_labels 2026-05-14 23:49:38 +03:00
Omar Amin 395ab4fbe2 Merge branch 'main' into feature/docker_labels 2026-04-24 03:08:05 +03:00
Florian Asche 105d19d48e ci(workflows): use docker metadata action for image builds
Replace hardcoded image tags and labels in both nightly and PR docker
build workflows with official docker/metadata-action. Standardizes
metadata generation while maintaining existing tag naming scheme.
2026-04-22 18:16:47 +02:00
Florian Asche 6d4e6dec21 build(docker): add standard oci image labels
- add missing OCI standard container annotation fields
- update project image description text
- include base image, vendor, revision and build timestamp labels
- align with official opencontainers image specification
2026-04-22 17:54:57 +02:00
3 changed files with 43 additions and 6 deletions

No files matched your search

+20 -2
View File
@@ -38,6 +38,24 @@ jobs:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v4
- name: Extract metadata for Docker
id: meta
uses: docker/metadata-action@8e5442c4ef9f78752691e2d8f8d19755c6f78e81 # v5.5.1
with:
images: ${{ env.REGISTRY_LOWER }}/${{ env.REPOSITORY_LOWER }}
tags: |
type=raw,value=nightly
labels: |
org.opencontainers.image.authors="Open Home Foundation"
org.opencontainers.image.base.name="docker.io/library/python:3.13-slim-trixie"
org.opencontainers.image.description="Linux-Voice-Assistant for Home Assistant"
org.opencontainers.image.documentation="https://github.com/OHF-Voice/linux-voice-assistant/blob/main/README.md"
org.opencontainers.image.licenses="Apache-2.0"
org.opencontainers.image.source="https://github.com/OHF-Voice/linux-voice-assistant"
org.opencontainers.image.title="Linux-Voice-Assistant"
org.opencontainers.image.url="https://github.com/OHF-Voice/linux-voice-assistant"
org.opencontainers.image.vendor="Open Home Foundation"
- name: Create version files
run: |
echo "nightly" > version.txt
@@ -51,8 +69,8 @@ jobs:
context: .
platforms: linux/amd64,linux/aarch64
push: true
tags: ${{ env.REGISTRY_LOWER }}/${{ env.REPOSITORY_LOWER }}:nightly
labels: "nightly"
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
- name: Generate artifact attestation
uses: actions/attest-build-provenance@v4
with:
+20 -2
View File
@@ -44,6 +44,24 @@ jobs:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v4
- name: Extract metadata for Docker
id: meta
uses: docker/metadata-action@8e5442c4ef9f78752691e2d8f8d19755c6f78e81 # v5.5.1
with:
images: ${{ env.REGISTRY_LOWER }}/${{ env.REPOSITORY_LOWER }}-pr
tags: |
type=raw,value=${{ env.PR_NUMBER }}
labels: |
org.opencontainers.image.authors="Open Home Foundation"
org.opencontainers.image.base.name="docker.io/library/python:3.13-slim-trixie"
org.opencontainers.image.description="Linux-Voice-Assistant for Home Assistant"
org.opencontainers.image.documentation="https://github.com/OHF-Voice/linux-voice-assistant/blob/main/README.md"
org.opencontainers.image.licenses="Apache-2.0"
org.opencontainers.image.source="https://github.com/OHF-Voice/linux-voice-assistant"
org.opencontainers.image.title="Linux-Voice-Assistant"
org.opencontainers.image.url="https://github.com/OHF-Voice/linux-voice-assistant"
org.opencontainers.image.vendor="Open Home Foundation"
- name: Create version files
run: |
echo "${{ env.PR_NUMBER }}" > version.txt
@@ -57,8 +75,8 @@ jobs:
context: .
platforms: linux/amd64,linux/aarch64
push: true
tags: "${{ env.REGISTRY_LOWER }}/${{ env.REPOSITORY_LOWER }}-pr:${{ env.PR_NUMBER }}"
labels: "${{ env.PR_NUMBER }}"
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
- name: Generate artifact attestation
uses: actions/attest-build-provenance@v4
with:
+3 -2
View File
@@ -6,12 +6,13 @@ ENV PYTHONUNBUFFERED=1
LABEL \
org.opencontainers.image.authors="Open Home Foundation" \
org.opencontainers.image.description="Voice assistant for Home Assistant" \
org.opencontainers.image.description="Linux-Voice-Assistant for Home Assistant" \
org.opencontainers.image.documentation="https://github.com/OHF-Voice/linux-voice-assistant/blob/main/README.md" \
org.opencontainers.image.licenses="Apache-2.0" \
org.opencontainers.image.source="https://github.com/OHF-Voice/linux-voice-assistant" \
org.opencontainers.image.title="Linux-Voice-Assistant" \
org.opencontainers.image.url="https://github.com/OHF-Voice/linux-voice-assistant"
org.opencontainers.image.url="https://github.com/OHF-Voice/linux-voice-assistant" \
org.opencontainers.image.vendor="Open Home Foundation"
### Install packages:
# - avahi-utils: For zeroconf/mDNS discovery by Home Assistant