From 759b5a6b9f5816468e7bbf99472ac874c244f6c7 Mon Sep 17 00:00:00 2001 From: Geoff Bourne Date: Mon, 3 Nov 2025 17:28:29 -0600 Subject: [PATCH] Include and output image.properties (#570) --- .github/workflows/ci.yml | 4 ++++ Dockerfile | 9 +++++++++ bedrock-entry.sh | 5 ++++- 3 files changed, 17 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ce87894..c035039 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -57,5 +57,9 @@ jobs: ${{ steps.meta.outputs.labels }} manymine.enable=true pull: true + build-args: | + BUILDTIME=${{ fromJSON(steps.meta.outputs.json).labels['org.opencontainers.image.created'] }} + VERSION=${{ fromJSON(steps.meta.outputs.json).labels['org.opencontainers.image.version'] }} + REVISION=${{ fromJSON(steps.meta.outputs.json).labels['org.opencontainers.image.revision'] }} cache-from: type=gha cache-to: type=gha,mode=max diff --git a/Dockerfile b/Dockerfile index 47028e6..b2f123f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -56,3 +56,12 @@ ENV VERSION=LATEST \ SERVER_PORT=19132 HEALTHCHECK --start-period=1m CMD /usr/local/bin/mc-monitor status-bedrock --host 127.0.0.1 --port $SERVER_PORT + +ARG BUILDTIME=local +ARG VERSION=local +ARG REVISION=local +COPY <