mirror of
https://github.com/Luzifer/ots.git
synced 2025-04-18 22:45:57 -04:00
Replace build-args with automated patching on release
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
61f85758c4
commit
4672164cb7
@ -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
|
||||
|
||||
...
|
||||
|
@ -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' \
|
||||
|
@ -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' \
|
||||
|
Loading…
x
Reference in New Issue
Block a user