Skip to content

Bump the github-actions group across 1 directory with 2 updates #244

Bump the github-actions group across 1 directory with 2 updates

Bump the github-actions group across 1 directory with 2 updates #244

Workflow file for this run

name: Build
on: [push, pull_request]
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
- name: Set up JDK 25
uses: actions/setup-java@v5
with:
distribution: temurin
java-version: 25
- name: Cache Gradle packages
uses: actions/cache@v6.1.0
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
restore-keys: ${{ runner.os }}-gradle
- name: Build
run: ./gradlew build --info
- uses: actions/upload-artifact@v7
with:
path: build/libs/*.jar
- uses: docker/login-action@v4
if: github.event_name == 'push'
with:
registry: ghcr.io/raeperd
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Get branch name
if: github.event_name == 'push'
run: echo "BRANCH_NAME=$(echo ${GITHUB_REF#refs/heads/} | tr /# -)" >> $GITHUB_ENV
- name: Build container image
if: github.event_name == 'push'
run: ./gradlew jib -Djib.to.tags=${{ env.BRANCH_NAME }}