Skip to content

Resolve "Consider potential future ThreatRating in the defense" #267

Resolve "Consider potential future ThreatRating in the defense"

Resolve "Consider potential future ThreatRating in the defense" #267

Workflow file for this run

name: Build and push to docker
on:
push:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up JDK
uses: actions/setup-java@v2
with:
java-version: 21
distribution: temurin
- name: Publish auto-referee to Docker Hub
env:
DOCKER_HUB_USERNAME: ${{ secrets.DOCKER_HUB_USERNAME }}
DOCKER_HUB_PASSWORD: ${{ secrets.DOCKER_HUB_PASSWORD }}
run: ./gradlew jib
- name: Publish auto-referee-vnc to Docker Hub
env:
DOCKER_HUB_USERNAME: ${{ secrets.DOCKER_HUB_USERNAME }}
DOCKER_HUB_PASSWORD: ${{ secrets.DOCKER_HUB_PASSWORD }}
run: |
docker build --pull -t tigersmannheim/auto-referee-vnc:latest src/main/docker-vnc
docker login -u "${DOCKER_HUB_USERNAME}" -p "${DOCKER_HUB_PASSWORD}"
docker push tigersmannheim/auto-referee-vnc:latest