Skip to content

Commit

Permalink
Bot docker: add labels to bot-docker, version number & SHA (#12774)
Browse files Browse the repository at this point in the history
  • Loading branch information
DanVanAtta authored Jul 25, 2024
1 parent db81eac commit ed750b8
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/build-headless-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit ed750b8

Please sign in to comment.