Skip to content

Bump the github-actions group across 1 directory with 3 updates #258

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

Bump the github-actions group across 1 directory with 3 updates #258

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
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.2.0
if: github.event_name == 'push' && github.actor != 'dependabot[bot]'
with:
registry: ghcr.io/raeperd
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Get branch name
if: github.event_name == 'push' && github.actor != 'dependabot[bot]'
run: |
BRANCH_NAME=$(printf '%s' "$GITHUB_REF_NAME" | tr '/#' '-')
echo "BRANCH_NAME=$BRANCH_NAME" >> "$GITHUB_ENV"
- name: Build container image
if: github.event_name == 'push' && github.actor != 'dependabot[bot]'
run: ./gradlew jib -Djib.to.tags="$BRANCH_NAME"