Bump org.jetbrains:annotations from 24.1.0 to 26.0.1 (#12946) #74
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Runs when master branch is updated. | |
# Creates & pushes a docker container for bots. | |
name: Master Branch Build - Build Bot Docker Container | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
build: | |
env: | |
IS_MASTER_BUILD: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }} | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up JDK 11 | |
uses: actions/setup-java@v4 | |
with: | |
distribution: temurin | |
java-version: 11 | |
- name: Login to GitHub Container Registry | |
if: ${{ env.IS_MASTER_BUILD }} | |
uses: docker/login-action@v3 | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: build headless docker container | |
if: ${{ env.IS_MASTER_BUILD }} | |
run: | | |
./gradlew :game-app:game-headless:shadowJar | |
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 |