Skip to content

[maven-release-plugin] prepare release 3.7 #28

[maven-release-plugin] prepare release 3.7

[maven-release-plugin] prepare release 3.7 #28

Workflow file for this run

name: Java CI with Maven
on:
push:
branches: [ "main" ]
tags:
- '*'
env:
REGISTRY: ghcr.io
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
cache: maven
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
-
name: Log in to the Container registry
uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build with Maven
run: |
mvn -B install --file pom.xml -pl db-service -DskipTests
mvn -B clean install --file pom.xml
mvn -B spring-boot:build-image --file pom.xml -DskipTests -Dimage.name=ghcr.io/semaforinformatik/workbook:${{ github.ref_name }}
- uses: actions/upload-artifact@v4
with:
name: Package
path: generic-workbook/target/workbook.jar
- name: Docker Build-Tag-Push my-app
run: |
docker push ghcr.io/semaforinformatik/workbook:latest
docker push ghcr.io/semaforinformatik/workbook:${{ github.ref_name }}