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 <