Skip to content

Commit

Permalink
Dockerfile, ci: Add image descriptions and source
Browse files Browse the repository at this point in the history
More information in case the image is consumed via different sources
than the official one.

Signed-off-by: Jan Kiszka <[email protected]>
  • Loading branch information
jan-kiszka committed Mar 8, 2024
1 parent 9103719 commit ecf57ba
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/actions/docker-init/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,3 +61,6 @@ runs:
cache-source: var-lib-apt
cache-target: /var/lib/apt
skip-extraction: ${{ steps.cache-var-lib-apt.outputs.cache-hit }}
- name: Extract metadata
id: meta
uses: docker/metadata-action@v5
1 change: 1 addition & 0 deletions .github/workflows/master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,4 @@ jobs:
provenance: mode=max,reproducible=true
outputs: type=registry,rewrite-timestamp=true
tags: ghcr.io/siemens/kas/${{ matrix.image-name }}
annotations: ${{ steps.meta.outputs.labels }}
1 change: 1 addition & 0 deletions .github/workflows/next.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,3 +105,4 @@ jobs:
provenance: mode=max,reproducible=true
outputs: type=registry,rewrite-timestamp=true
tags: ghcr.io/siemens/kas/${{ matrix.image-name }}:next
annotations: ${{ steps.meta.outputs.labels }}
1 change: 1 addition & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,4 @@ jobs:
ghcr.io/siemens/kas/${{ matrix.image-name }}
ghcr.io/siemens/kas/${{ matrix.image-name }}:${{ env.RELEASE_VERSION }}
ghcr.io/siemens/kas/${{ matrix.image-name }}:latest-release
annotations: ${{ steps.meta.outputs.labels }}
6 changes: 6 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ ARG DEBIAN_TAG=bookworm-slim

FROM debian:${DEBIAN_TAG} as kas-base

LABEL org.opencontainers.image.source="https://github.com/siemens/kas"

ARG SOURCE_DATE_EPOCH
ARG CACHE_SHARING=locked

Expand Down Expand Up @@ -95,6 +97,8 @@ ENTRYPOINT ["/container-entrypoint"]

FROM kas-base as kas-isar

LABEL org.opencontainers.image.description="Build environment for isar-based Debian projects"

ARG SOURCE_DATE_EPOCH
ARG CACHE_SHARING=locked

Expand Down Expand Up @@ -125,6 +129,8 @@ USER builder

FROM kas-base as kas

LABEL org.opencontainers.image.description "Build environment for Yocto/OpenEmbedded projects"

ARG SOURCE_DATE_EPOCH
ARG CACHE_SHARING=locked

Expand Down

0 comments on commit ecf57ba

Please sign in to comment.