Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature/init gateway #3

Merged
merged 48 commits into from
Jul 18, 2024
Merged
Show file tree
Hide file tree
Changes from 35 commits
Commits
Show all changes
48 commits
Select commit Hold shift + click to select a range
b83945a
init gateway from internal archtype
simonhir Jul 4, 2024
22e7161
gateway fix package
simonhir Jul 4, 2024
d11cabc
mv build config to root
simonhir Jul 4, 2024
d4e2a69
cp build from digiwf
simonhir Jul 4, 2024
9986be5
gateway fix maven filters in config
simonhir Jul 4, 2024
583819c
gateway upgrade hazlecast
simonhir Jul 5, 2024
bfca877
gateway upgrade hazlecast
simonhir Jul 5, 2024
528cbcd
upgrade dependencies
simonhir Jul 5, 2024
6191a48
gateway reformat tests
simonhir Jul 5, 2024
b599f93
gateway update config
simonhir Jul 5, 2024
5b7b879
gateway add csrf whitelist
simonhir Jul 5, 2024
5e9f1dd
gateway update dependency, cleanup config and add Dockerfile
simonhir Jul 5, 2024
4bd0928
gateway update no-security syntax
simonhir Jul 5, 2024
3be3539
gateway update security config
simonhir Jul 5, 2024
eb7c9d9
gateway add csrf whitelist
simonhir Jul 5, 2024
a283756
gateway fiy warnings and format files
simonhir Jul 5, 2024
96563f1
update ci
simonhir Jul 5, 2024
75bbdb2
gateway init README.md
simonhir Jul 5, 2024
397bc93
init ci
simonhir Jul 5, 2024
fcc4aba
init ci
simonhir Jul 5, 2024
e471c62
init ci
simonhir Jul 5, 2024
8ab1054
Revert "init ci"
simonhir Jul 5, 2024
e35e2dc
updaten maven version enforce
simonhir Jul 5, 2024
c486b78
ci use github dependency review
simonhir Jul 5, 2024
c975fd1
init README.md
simonhir Jul 5, 2024
ed30b6e
ci github dependency review run for all prs
simonhir Jul 8, 2024
5801c1b
ci maven build refactor token usage
simonhir Jul 8, 2024
9d9e72e
Revert "init ci"
simonhir Jul 8, 2024
76d976a
ci fix naming
simonhir Jul 8, 2024
e6e56c6
ci fix naming
simonhir Jul 8, 2024
6d4b0e8
ci fix naming
simonhir Jul 8, 2024
80245c5
ci fix naming
simonhir Jul 8, 2024
66f5de5
ci maven update names
simonhir Jul 8, 2024
532d8c6
ci maven rename
simonhir Jul 8, 2024
255aa1c
ci maven rename
simonhir Jul 8, 2024
c5137db
gateway rm frontend configurations
simonhir Jul 8, 2024
9ebd1b4
dependencies use spring boot 3.3.1 and cloud 2023.0.2
simonhir Jul 8, 2024
a6f3e7d
ci use matrix for image build
simonhir Jul 8, 2024
97ced8d
ci use matrix for image build
simonhir Jul 8, 2024
5afb3e3
ci add release logic
simonhir Jul 8, 2024
adfebad
rm duplicate .gitignore
simonhir Jul 8, 2024
f9dfd08
rm unneeded start scripts
simonhir Jul 8, 2024
deac417
gateway rm copyright notice
simonhir Jul 9, 2024
82f1bb7
gateway replace hazlecast codec dependency
simonhir Jul 11, 2024
7637091
gateway fix typo
simonhir Jul 12, 2024
6493545
refactor maven build config
simonhir Jul 15, 2024
dfed9e7
refactor maven build config and reformat
simonhir Jul 16, 2024
7d864d8
use hazelcast 5.3.6
simonhir Jul 16, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 12 additions & 16 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -1,19 +1,15 @@
name: build and test
name: build

on: [push]
on:
pull_request:
push:
branches:
- main

jobs:
compliance:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Advance Security Policy as Code
uses: advanced-security/[email protected]
with:
policy: it-at-m/policy-as-code
policy-path: default.yaml
token: ${{ secrets.GITHUB_TOKEN }}
argvs: "--disable-dependabot --disable-secret-scanning --disable-code-scanning --display"
maven:
uses: ./.github/workflows/maven.yaml
with:
build-images: ${{ github.ref_name == 'main' }}
release-version: dev
secrets: inherit
15 changes: 15 additions & 0 deletions .github/workflows/dependency_review.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: dependency-review

on:
pull_request:

jobs:
dependency-review:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Dependency Review
uses: actions/dependency-review-action@v4
with:
config-file: it-at-m/.github/workflow-configs/dependency_review.yaml@main
76 changes: 76 additions & 0 deletions .github/workflows/maven.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
env:
JAVA_VERSION: 17
REGISTRY: ghcr.io
TZ: Europe/Berlin

on:
workflow_call:
inputs:
snapshot-release:
description: 'Snapshot release?'
type: boolean
default: true
build-images:
description: 'Build and push images?'
type: boolean
default: false
release-version:
description: 'Release version'
type: string
required: false

jobs:
build-maven:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up JDK
uses: actions/setup-java@v4
with:
java-version: ${{ env.JAVA_VERSION }}
distribution: "temurin"
cache: "maven"
- name: Maven build
run: mvn --batch-mode clean install
- name: "Upload target artifacts"
uses: actions/upload-artifact@v4
with:
name: target
path: "**/target"
retention-days: 5

build-images:
if: inputs.build-images == true
needs: build-maven
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Download target artifacts
uses: actions/download-artifact@v4
with:
name: target
- name: Login to Registry
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

# refarch-gateway
- name: Extract metadata (tags, labels) for gateway image
id: gateway_meta
uses: docker/metadata-action@v5
with:
images: "${{ env.REGISTRY }}/${{ github.repository }}/refarch-gateway"
simonhir marked this conversation as resolved.
Show resolved Hide resolved
tags: |
type=raw,value=${{ inputs.release-version }}
type=raw,value=latest,enable=${{ inputs.snapshot-release == false }}
- name: Build and push gateway image
uses: docker/build-push-action@v4
with:
context: ./refarch-gateway
push: true
tags: ${{ steps.gateway_meta.outputs.tags }}
labels: ${{ steps.gateway_meta.outputs.labels }}
26 changes: 26 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: release

on:
workflow_dispatch:
inputs:
snapshot-release:
description: 'Snapshot release?'
type: boolean
default: true
build-images:
description: 'Build and push images?'
type: boolean
default: false
release-version:
description: 'Release version'
type: string
required: false

jobs:
build:
uses: ./.github/workflows/maven.yaml
with:
snapshot-release: ${{ inputs.snapshot-release != false }}
build-images: true
release-version: ${{ inputs.release-version }}
secrets: inherit
34 changes: 34 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# Covers Maven specific
target/
pom.xml.tag
pom.xml.releaseBackup
pom.xml.versionsBackup
pom.xml.next
release.properties
dependency-reduced-pom.xml
buildNumber.properties
.mvn/timing.properties
!/.mvn/wrapper/maven-wrapper.jar

# Covers Eclipse specific:
.settings/
.classpath
.project

# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and WebStorm
.idea
*.iml

# Covers Netbeans:
**/nbproject/private/
**/nbproject/Makefile-*.mk
**/nbproject/Package-*.bash
build/
nbbuild/
dist/
nbdist/
.nb-gradle/

# Sonstiges
$(pwd)

8 changes: 0 additions & 8 deletions Dockerfile

This file was deleted.

59 changes: 11 additions & 48 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,60 +1,23 @@
## Customize this file after creating the new REPO and remove this lines.
What to adjust:
* Add the your project or repo name direct under the logo.
* Add a short and long desciption.
* Add links for your final repo to report a bug or request a feature.
* Add list of used technologies.
* If you have, add a roadmap or remove this section.
* Fill up the section for set up and documentation.
* Start in this file only with documentation and link to the docs folder.
* Add more project shields. Use [shields.io](https://shields.io/) with style `for-the-badge`.

## ------- end to remove -------
<!-- add Project Logo, if existing -->

# repo or project name
# Refarch

[![Made with love by it@M][made-with-love-shield]][itm-opensource]
<!-- feel free to add more shields, style 'for-the-badge' -> see https://shields.io/badges -->

*Add a description from your project here.*
Collection of different reference architecture (Refarch) components developed by it@M.

## Usage

### Built With
The usage of the different components is described in their corresponding README.md

The documentation project is built with technologies we use in our projects:

* *write here the list of used technologies*

## Roadmap

*if you have a ROADMAP for your project add this here*


See the [open issues](#) for a full list of proposed features (and known issues).


## Set up
*how can i start and fly this project*

## Documentation
*what insights do you have to tell*

```mermaid
graph TD;
A-->B;
A-->C;
B-->D;
C-->D;
```

use [diagrams](https://docs.github.com/en/get-started/writing-on-github/working-with-advanced-formatting/creating-diagrams).
- [refarch-gateway](./refarch-gateway/README.md)

## Contributing

Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are **greatly appreciated**.
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any
contributions you make are **greatly appreciated**.

If you have a suggestion that would make this better, please open an issue with the tag "enhancement", fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement".
If you have a suggestion that would make this better, please open an issue with the tag "enhancement", fork the repo and
create a pull request. You can also simply open an issue with the tag "enhancement".
Don't forget to give the project a star! Thanks again!

1. Open an issue with the tag "enhancement"
Expand All @@ -66,16 +29,16 @@ Don't forget to give the project a star! Thanks again!

More about this in the [CODE_OF_CONDUCT](/CODE_OF_CONDUCT.md) file.


## License

Distributed under the MIT License. See [LICENSE](LICENSE) file for more information.


## Contact

it@M - [email protected]

<!-- project shields / links -->

[made-with-love-shield]: https://img.shields.io/badge/made%20with%20%E2%9D%A4%20by-it%40M-yellow?style=for-the-badge

[itm-opensource]: https://opensource.muenchen.de/
Loading
Loading