Skip to content

all tests pass

all tests pass #11

Workflow file for this run

name: Build and Push Docker image
env:
ACTIONS_STEP_DEBUG: true
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
build:
runs-on: [ self-hosted ]
steps:
- uses: actions/checkout@v4
- name: Set up JDK 19
uses: actions/setup-java@v4
with:
java-version: '19'
distribution: 'temurin'
cache: maven
- name: Build with Maven
run: mvn clean install -DskipTests
- name: Build Docker image
run: docker build . --file Dockerfile --tag Moonbeam69/default
- name: Log in to Docker Hub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Push Docker image to Docker Hub
run: docker push Moonbeam69/default:$(date +%s)