Skip to content

Commit

Permalink
fix: image license information
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeLionX committed Nov 20, 2023
1 parent 5c37906 commit b4df7eb
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 5 deletions.
16 changes: 13 additions & 3 deletions .github/workflows/check-and-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@ jobs:
type=raw,value=latest
type=raw,value=${{ steps.version.outputs.version }}
labels: |
org.opencontainers.image.title=TimeEval algorithm ${{ matrix.algorithm_name }}
org.opencontainers.image.licenses=MIT
org.opencontainers.image.title=TimeEval ${{ matrix.algorithm_name }} base image
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to registry
Expand Down Expand Up @@ -115,7 +116,8 @@ jobs:
type=raw,value=latest
type=raw,value=${{ steps.version.outputs.version }}
labels: |
org.opencontainers.image.title=TimeEval algorithm ${{ matrix.algorithm_name }}
org.opencontainers.image.licenses=MIT
org.opencontainers.image.title=TimeEval ${{ matrix.algorithm_name }} intermediate image
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to registry
Expand Down Expand Up @@ -185,7 +187,15 @@ jobs:
with:
context: "./${{ matrix.algorithm_name }}"
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
# filter out license label, because it is set in the Dockerfile
labels: |
org.opencontainers.image.title=${{ fromJSON(steps.meta.outputs.json).labels['org.opencontainers.image.title'] }}
org.opencontainers.image.description=${{ fromJSON(steps.meta.outputs.json).labels['org.opencontainers.image.description'] }}
org.opencontainers.image.url=${{ fromJSON(steps.meta.outputs.json).labels['org.opencontainers.image.url'] }}
org.opencontainers.image.source=${{ fromJSON(steps.meta.outputs.json).labels['org.opencontainers.image.source'] }}
org.opencontainers.image.version=${{ fromJSON(steps.meta.outputs.json).labels['org.opencontainers.image.version'] }}
org.opencontainers.image.created=${{ fromJSON(steps.meta.outputs.json).labels['org.opencontainers.image.created'] }}
org.opencontainers.image.revision=${{ fromJSON(steps.meta.outputs.json).labels['org.opencontainers.image.revision'] }}
pull: true
load: true
push: false
Expand Down
1 change: 0 additions & 1 deletion 0-base-images/python3-base/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
FROM python:3.7.9-slim-buster

LABEL maintainer="[email protected]"
LABEL org.opencontainers.image.licenses=MIT

RUN set -eux; \
apt-get update; \
Expand Down
1 change: 0 additions & 1 deletion 0-base-images/r-base/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
FROM debian:buster-slim

LABEL maintainer="[email protected]"
LABEL org.opencontainers.image.licenses=MIT

RUN set -eux; \
apt-get update; \
Expand Down

0 comments on commit b4df7eb

Please sign in to comment.