diff --git a/.git_changerelease.yaml b/.git_changerelease.yaml index dae7409..6ec9da7 100644 --- a/.git_changerelease.yaml +++ b/.git_changerelease.yaml @@ -21,5 +21,8 @@ pre_commit_commands: - |- yq -iP ".services.app.build.context = \"https://github.com/Luzifer/ots.git#v${TAG_VERSION}\"" docker-compose.yml git add docker-compose.yml + - |- + sed -i -E "s@org.opencontainers.image.version='[^']*'@org.opencontainers.image.version='${TAG_VERSION}'@" Dockerfile Dockerfile.minimal + git add Dockerfile Dockerfile.minimal ... diff --git a/Dockerfile b/Dockerfile index 7e3f49a..ab9a0c5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -25,11 +25,8 @@ RUN set -ex \ FROM alpine:latest -ARG BUILD_DATE -ARG APP_VERSION - LABEL org.opencontainers.image.authors='Knut Ahlers ' \ - org.opencontainers.image.version=$APP_VERSION \ + org.opencontainers.image.version='v1.11.1' \ org.opencontainers.image.url='https://hub.docker.com/r/luzifer/ots/' \ org.opencontainers.image.documentation='https://github.com/Luzifer/ots/wiki' \ org.opencontainers.image.source='https://github.com/Luzifer/ots' \ diff --git a/Dockerfile.minimal b/Dockerfile.minimal index d9f2777..9e7531d 100644 --- a/Dockerfile.minimal +++ b/Dockerfile.minimal @@ -25,11 +25,8 @@ RUN set -ex \ FROM scratch -ARG BUILD_DATE -ARG APP_VERSION - LABEL org.opencontainers.image.authors='Knut Ahlers ' \ - org.opencontainers.image.version $APP_VERSION \ + org.opencontainers.image.version='v1.11.1' \ org.opencontainers.image.url='https://hub.docker.com/r/luzifer/ots/' \ org.opencontainers.image.documentation='https://github.com/Luzifer/ots/wiki' \ org.opencontainers.image.source='https://github.com/Luzifer/ots' \