-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 39b5d56
Showing
262 changed files
with
30,597 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,105 @@ | ||
name: Release | ||
on: | ||
push: | ||
branches: [ main ] | ||
tags-ignore: | ||
- '*' | ||
|
||
jobs: | ||
release: | ||
runs-on: ubuntu-latest | ||
if: ${{ ! contains(github.event.head_commit.message, '[ci skip]') }} | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 2 | ||
|
||
- name: Extract data from pom.xml | ||
id: pom-data | ||
uses: andreacomo/maven-gav-extractor@v2 | ||
|
||
- name: Get Changelog Entry based on pom.xml version | ||
id: changelog_for_pom_version | ||
uses: mindsers/changelog-reader-action@v2 | ||
with: | ||
version: ${{ steps.pom-data.outputs.version }} | ||
validation_level: error | ||
validation_depth: 5 | ||
|
||
- name: check tag on version | ||
uses: mukunku/[email protected] | ||
id: tag-for-pom-version | ||
with: | ||
tag: elBook-${{ steps.pom-data.outputs.version }} | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: cancel action on tag exist | ||
if: steps.tag-for-pom-version.outputs.exists == 'true' | ||
run: | | ||
echo "::error::Tag for version ${{ steps.pom-data.outputs.version }} already exist." | ||
exit 1 | ||
- name: Set up JDK 17 | ||
uses: actions/setup-java@v3 | ||
with: | ||
java-version: 17 | ||
distribution: 'zulu' | ||
|
||
- name: Build with Maven | ||
id: build_maven | ||
run: | | ||
mvn -B package --file pom.xml | ||
- name: Docker meta | ||
id: meta | ||
uses: docker/metadata-action@v5 | ||
with: | ||
images: | | ||
${{ secrets.DOCKER_HUB_USER }}/elbook | ||
tags: | | ||
type=raw,value=latest | ||
type=match,pattern=[0-9]+.[0-9]+.[0-9]+,value=v${{ steps.pom-data.outputs.version }} | ||
#type=match,pattern=[0-9]+.[0-9]+,value=v${{ steps.pom-data.outputs.version }} | ||
#type=sha | ||
- name: Set up Docker Buildx | ||
id: buildx | ||
uses: docker/setup-buildx-action@v3 | ||
|
||
- name: Inspect builder | ||
run: | | ||
echo "Name: ${{ steps.buildx.outputs.name }}" | ||
echo "Endpoint: ${{ steps.buildx.outputs.endpoint }}" | ||
echo "Status: ${{ steps.buildx.outputs.status }}" | ||
echo "Flags: ${{ steps.buildx.outputs.flags }}" | ||
echo "Platforms: ${{ steps.buildx.outputs.platforms }}" | ||
echo "Tags: ${{ steps.meta.outputs.tags }}" | ||
- name: Login to DockerHub | ||
uses: docker/login-action@v3 | ||
with: | ||
username: ${{ secrets.DOCKER_HUB_USER }} | ||
password: ${{ secrets.DOCKER_HUB_TOKEN }} | ||
|
||
- name: Build and push docker images | ||
uses: docker/build-push-action@v5 | ||
with: | ||
context: . | ||
file: docker/Dockerfile | ||
platforms: linux/amd64,linux/arm64 | ||
push: ${{ github.event_name != 'pull_request' }} | ||
tags: ${{ steps.meta.outputs.tags }} | ||
labels: ${{ steps.meta.outputs.labels }} | ||
cache-from: type=gha | ||
cache-to: type=gha,mode=max | ||
|
||
- name: Publish new version | ||
uses: svenstaro/upload-release-action@v2 | ||
with: | ||
repo_token: ${{ secrets.GITHUB_TOKEN }} | ||
file: target/elbook-${{ steps.pom-data.outputs.version }}.jar | ||
tag: elBook-${{ steps.pom-data.outputs.version }} | ||
overwrite: false | ||
body: ${{ steps.changelog_for_pom_version.outputs.changes }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
HELP.md | ||
target/ | ||
!.mvn/wrapper/maven-wrapper.jar | ||
!**/src/main/**/target/ | ||
!**/src/test/**/target/ | ||
|
||
### STS ### | ||
.apt_generated | ||
.classpath | ||
.factorypath | ||
.project | ||
.settings | ||
.springBeans | ||
.sts4-cache | ||
|
||
### IntelliJ IDEA ### | ||
.idea | ||
*.iws | ||
*.iml | ||
*.ipr | ||
|
||
### NetBeans ### | ||
/nbproject/private/ | ||
/nbbuild/ | ||
/dist/ | ||
/nbdist/ | ||
/.nb-gradle/ | ||
build/ | ||
!**/src/main/**/build/ | ||
!**/src/test/**/build/ | ||
|
||
### VS Code ### | ||
.vscode/ | ||
|
||
/docker/springboot/elbook.jar | ||
/data/** | ||
/.idea/** | ||
/logs/ | ||
/testdata/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Changelog | ||
|
||
All notable changes to this project will be documented in this file. | ||
|
||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), | ||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). | ||
|
||
## [Unreleased] | ||
|
||
### Added | ||
|
||
### Changed | ||
|
||
### Fixed | ||
|
||
## [2.0.0] | ||
|
||
### Changed | ||
- Update aller Komponenten | ||
- Umstellung auf openSource EUPL 1.2 | ||
- Änderungen für die Rest-API-Version 1.12.5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
Copyright and license policy | ||
============================ | ||
|
||
Copyright (C) 2023-present sberg it-systeme GmbH | ||
|
||
This program is free software: you can redistribute it and/or modify it under the terms of the license. | ||
|
||
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the License for more details. | ||
|
||
License | ||
------- | ||
All released source code should by default be licensed under EUROPEAN UNION PUBLIC LICENCE v. 1.2. | ||
Exceptions may be made to this policy on a case-by-case basis. | ||
|
||
For full license conditions, including applicable addendums specific to this program, see the LICENSE.md file, which you should have received along with this notice. If not, check [here][0]. | ||
|
||
[0]: https://github.com/sberg-net/elbook/blob/main/LICENSE |
Oops, something went wrong.