Skip to content

Commit 894195e

Browse files
authored
FV-111 Merge sprint nach Main
2 parents e00acc7 + d695cbc commit 894195e

File tree

457 files changed

+22167
-3324
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

457 files changed

+22167
-3324
lines changed

.github/dependabot.yml

Lines changed: 0 additions & 11 deletions
This file was deleted.

.github/workflows/build.yaml

Lines changed: 6 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -8,38 +8,22 @@ jobs:
88

99
steps:
1010
- name: Checkout code
11-
uses: actions/checkout@v3
11+
uses: actions/checkout@v4
1212

1313
- name: Advance Security Policy as Code
14-
uses: advanced-security/policy-as-code@v2.5.0
14+
uses: advanced-security/policy-as-code@v2.11.0
1515
with:
1616
policy: GeekMasher/security-queries
1717
policy-path: $GITHUB_WORKSPACE/policies/default.yml
18-
1918
token: ${{ secrets.ACCESS_TOKEN }}
20-
2119
argvs: '--disable-dependabot --disable-secret-scanning --disable-code-scanning'
2220

2321
build-maven:
2422
needs: compliance
2523
runs-on: ubuntu-latest
24+
permissions:
25+
contents: read
2626
steps:
27-
- uses: actions/checkout@v3
28-
29-
- name: Inject slug/short variables
30-
uses: rlespinasse/github-slug-action@v4
31-
32-
- name: Set up JDK
33-
uses: actions/setup-java@v3
34-
with:
35-
java-version: "21"
36-
distribution: "temurin"
37-
cache: "maven"
38-
39-
- name: Set up Node
40-
uses: actions/setup-node@v4
41-
with:
42-
node-version: 18
43-
4427
- name: Build with Maven
45-
run: mvn -B verify -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=WARN
28+
id: maven
29+
uses: it-at-m/lhm_actions/action-templates/actions/[email protected]

.github/workflows/build_push.yaml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: build maven and image
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
tag:
7+
description: 'What should the image be tagged as?'
8+
required: false
9+
default: 'dev'
10+
11+
env:
12+
IMAGE_NAME: "dave-backend"
13+
14+
jobs:
15+
build-maven:
16+
runs-on: ubuntu-latest
17+
permissions:
18+
contents: read
19+
outputs:
20+
ARTIFACT_NAME: ${{ steps.maven.outputs.artifact-name }}
21+
steps:
22+
- name: Build with Maven
23+
id: maven
24+
uses: it-at-m/lhm_actions/action-templates/actions/[email protected]
25+
26+
build-image:
27+
runs-on: ubuntu-latest
28+
needs: build-maven
29+
permissions:
30+
packages: write
31+
steps:
32+
- name: Build and push Docker image
33+
uses: it-at-m/lhm_actions/action-templates/actions/[email protected]
34+
with:
35+
path: .
36+
image-name: ${{ env.IMAGE_NAME }}
37+
artifact-name: ${{ needs.build-maven.outputs.ARTIFACT_NAME }}
38+
registry-username: ${{ github.actor }}
39+
registry-password: ${{ secrets.GITHUB_TOKEN }}
40+
image-tags: |
41+
# use tag from input only if triggered by workflow_dispatch
42+
type=raw,value=${{ github.event.inputs.tag }},enable=${{ github.event_name == 'workflow_dispatch' }}
43+
image-labels: |
44+
maintainer=it@m, Landeshauptstadt Muenchen (LHM)

.github/workflows/build_push_feature.yaml

Lines changed: 0 additions & 62 deletions
This file was deleted.

.github/workflows/build_push_stable.yaml

Lines changed: 0 additions & 65 deletions
This file was deleted.

.github/workflows/release.yaml

Lines changed: 32 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,38 +4,61 @@ on:
44
workflow_dispatch:
55
inputs:
66
releaseVersion:
7-
description: "Default version to use when preparing a release."
7+
description: "Version to use when preparing a release (e.g., 1.2.3)"
88
required: true
99
default: "2.0.0"
1010
developmentVersion:
11-
description: "Default version to use for new local working copy."
11+
description: "Version to use for new local working copy (e.g., 1.2.4-SNAPSHOT)"
1212
required: true
1313
default: "2.0.1-SNAPSHOT"
1414

15+
env:
16+
IMAGE_NAME: "dave-backend"
17+
1518
jobs:
1619
release-maven:
1720
runs-on: ubuntu-latest
21+
permissions:
22+
contents: write
1823
outputs:
1924
MVN_ARTIFACT_ID: ${{ steps.maven-release-step.outputs.MVN_ARTIFACT_ID }}
2025
ARTIFACT_NAME: ${{ steps.maven-release-step.outputs.artifact-name }}
2126
env:
2227
TZ: Europe/Berlin # timezone
2328
steps:
2429
- id: maven-release-step
25-
uses: it-at-m/.github/.github/actions/action-maven-release@main
30+
uses: it-at-m/lhm_actions/action-templates/actions/action-maven-release@v1.0.20
2631
with:
2732
app-path: ""
28-
releaseVersion: "${{ github.event.inputs.releaseVersion }}"
29-
developmentVersion: "${{ github.event.inputs.developmentVersion }}"
30-
java-version: 21
33+
releaseVersion: ${{ github.event.inputs.releaseVersion }}
34+
developmentVersion: ${{ github.event.inputs.developmentVersion }}
3135

32-
create-github-release:
36+
build-image:
37+
runs-on: ubuntu-latest
3338
needs: release-maven
39+
permissions:
40+
packages: write
41+
steps:
42+
- uses: it-at-m/lhm_actions/action-templates/actions/[email protected]
43+
with:
44+
path: .
45+
image-name: ${{ env.IMAGE_NAME }}
46+
artifact-name: ${{ needs.release-maven.outputs.ARTIFACT_NAME }}
47+
registry-username: ${{ github.actor }}
48+
registry-password: ${{ secrets.GITHUB_TOKEN }}
49+
image-tags: |
50+
type=semver,pattern={{version}},value=${{ github.event.inputs.releaseVersion }}
51+
image-labels: |
52+
maintainer=it@m, Landeshauptstadt Muenchen (LHM)
53+
54+
create-github-release:
55+
needs: ["release-maven", "build-image"]
3456
runs-on: ubuntu-latest
57+
permissions:
58+
contents: write
3559
steps:
3660
- name: Create GitHub Release
37-
id: create_release
38-
uses: it-at-m/.github/.github/actions/action-create-github-release@main
61+
uses: it-at-m/lhm_actions/action-templates/actions/[email protected]
3962
with:
4063
artifact-name: ${{ needs.release-maven.outputs.ARTIFACT_NAME }}
4164
tag-name: ${{ needs.release-maven.outputs.MVN_ARTIFACT_ID }}-${{ github.event.inputs.releaseVersion }}

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,4 @@ nbdist/
4444
# do not check in local application profile yml
4545
src/**/application-local.yml
4646
/.openapi-generator/
47+
/*_logfile

CODE_OF_CONDUCT.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ representative at an online or offline event.
5959
## Enforcement
6060

6161
Instances of abusive, harassing, or otherwise unacceptable behavior may be
62-
reported to the community leaders responsible for enforcement at <opensource@muenchendigital.io>.
62+
reported to the community leaders responsible for enforcement at <opensource@muenchen.de>.
6363
All complaints will be reviewed and investigated promptly and fairly.
6464

6565
All community leaders are obligated to respect the privacy and security of the

Dockerfile

100755100644
File mode changed.

0 commit comments

Comments
 (0)