Replace build-args with automated patching on release

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2023-12-15 18:06:27 +01:00
parent 61f85758c4
commit 4672164cb7
No known key found for this signature in database
GPG Key ID: D91C3E91E4CAD6F5
3 changed files with 5 additions and 8 deletions

View File

@ -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
...

View File

@ -25,11 +25,8 @@ RUN set -ex \
FROM alpine:latest
ARG BUILD_DATE
ARG APP_VERSION
LABEL org.opencontainers.image.authors='Knut Ahlers <knut@ahlers.me>' \
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' \

View File

@ -25,11 +25,8 @@ RUN set -ex \
FROM scratch
ARG BUILD_DATE
ARG APP_VERSION
LABEL org.opencontainers.image.authors='Knut Ahlers <knut@ahlers.me>' \
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' \