From ed750b8ef17fe77afd4a6471116f176402ac4f47 Mon Sep 17 00:00:00 2001 From: Dan Van Atta Date: Thu, 25 Jul 2024 16:33:55 -0700 Subject: [PATCH] Bot docker: add labels to bot-docker, version number & SHA (#12774) --- .github/workflows/build-headless-docker.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-headless-docker.yml b/.github/workflows/build-headless-docker.yml index c8f6c9cbf40..ebb5b67b6ce 100644 --- a/.github/workflows/build-headless-docker.yml +++ b/.github/workflows/build-headless-docker.yml @@ -29,5 +29,10 @@ jobs: if: ${{ env.IS_MASTER_BUILD }} run: | ./gradlew :game-app:game-headless:shadowJar - docker build game-app/game-headless --tag ghcr.io/triplea-game/bot:latest + BUILD_VERSION=$(game-app/run/.build/get-build-version) + + docker build game-app/game-headless \ + --tag ghcr.io/triplea-game/bot:latest \ + --label gitSha="$(git rev-parse --short HEAD)" \ + --label buildVersion="$BUILD_VERSION" \ docker push ghcr.io/triplea-game/bot:latest