-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
https://jira.catena-x.net/browse/KA-324 root level build and deployme…
…nt skeleton
- Loading branch information
Showing
75 changed files
with
9,038 additions
and
25 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,54 @@ | ||
<!-- | ||
* Copyright (C) 2022-2023 Catena-X Association and others. | ||
* | ||
* This program and the accompanying materials are made available under the | ||
* terms of the Apache License 2.0 which is available at | ||
* http://www.apache.org/licenses/. | ||
* | ||
* SPDX-FileType: DOCUMENTATION | ||
* SPDX-FileCopyrightText: 2022-2023 Catena-X Association | ||
* SPDX-License-Identifier: Apache-2.0 | ||
--> | ||
|
||
--- | ||
name: Bug report | ||
about: Create a report to help us improve | ||
title: '' | ||
labels: bug | ||
assignees: '' | ||
|
||
--- | ||
|
||
## Describe the bug | ||
|
||
_A clear and concise description of what the bug is._ | ||
|
||
### To Reproduce | ||
|
||
_Steps to reproduce the behavior:_ | ||
|
||
1. Go to '...' | ||
2. Click on '....' | ||
3. Scroll down to '....' | ||
4. See error | ||
|
||
### Expected behavior | ||
|
||
_A clear and concise description of what you expected to happen._ | ||
|
||
### Screenshots/Error Messages | ||
|
||
_If applicable, add screenshots and/or error messages to help explain your problem._ | ||
|
||
## Context Informations | ||
|
||
_Add any other context about the probleme here._ | ||
|
||
- Used version: [e.g. Commit Hash] | ||
- OS: [e.g. Mac OS (M1), Windows, Linux] | ||
- Docker Version: [e.g. 20.10.12] | ||
- `java --version`: | ||
|
||
## Possible Implementation | ||
|
||
_You already know the root cause of the erroneous state and how to fix it? Feel free to share your thoughts._ |
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,35 @@ | ||
<!-- | ||
* Copyright (C) 2022-2023 Catena-X Association and others. | ||
* | ||
* This program and the accompanying materials are made available under the | ||
* terms of the Apache License 2.0 which is available at | ||
* http://www.apache.org/licenses/. | ||
* | ||
* SPDX-FileType: DOCUMENTATION | ||
* SPDX-FileCopyrightText: 2022-2023 Catena-X Association | ||
* SPDX-License-Identifier: Apache-2.0 | ||
--> | ||
|
||
--- | ||
name: Feature request | ||
about: Suggest an idea for this project | ||
title: '' | ||
labels: enhancement | ||
assignees: '' | ||
|
||
--- | ||
|
||
_If you are missing a feature or have an idea how to improve this project that should first be | ||
discussed, please feel free to open up a [discussion](https://github.com/eclipse-tractusx/tractusx-edc/discussions/categories/ideas)._ | ||
|
||
**Is your feature request related to a problem? Please describe.** | ||
_A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]_ | ||
|
||
**Describe the solution you'd like** | ||
_A clear and concise description of what you want to happen._ | ||
|
||
**Describe alternatives you've considered** | ||
_A clear and concise description of any alternative solutions or features you've considered._ | ||
|
||
**Additional context** | ||
_Add any other context or screenshots about the feature request here._ |
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,25 @@ | ||
<!-- | ||
* Copyright (C) 2022-2023 Catena-X Association and others. | ||
* | ||
* This program and the accompanying materials are made available under the | ||
* terms of the Apache License 2.0 which is available at | ||
* http://www.apache.org/licenses/. | ||
* | ||
* SPDX-FileType: DOCUMENTATION | ||
* SPDX-FileCopyrightText: 2022-2023 Catena-X Association | ||
* SPDX-License-Identifier: Apache-2.0 | ||
--> | ||
|
||
## WHAT | ||
|
||
_Briefly describe what your PR changes, which features it adds/modifies._ | ||
|
||
## WHY | ||
|
||
_Briefly state why the change was necessary._ | ||
|
||
## FURTHER NOTES | ||
|
||
_List other areas of code that have changed but are not necessarily linked to the main feature. This could be method signature changes, package declarations, bugs that were encountered and were fixed inline, etc._ | ||
|
||
Closes # <-- _insert Issue number if one exists_ |
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,32 @@ | ||
# | ||
# Copyright (c) 2023 Bayerische Motoren Werke Aktiengesellschaft (BMW AG) | ||
# Copyright (c) 2023 Contributors to the Eclipse Foundation | ||
# | ||
# See the NOTICE file(s) distributed with this work for additional | ||
# information regarding copyright ownership. | ||
# | ||
# This program and the accompanying materials are made available under the | ||
# terms of the Apache License, Version 2.0 which is available at | ||
# https://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT | ||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the | ||
# License for the specific language governing permissions and limitations | ||
# under the License. | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
# | ||
|
||
--- | ||
name: "Setup JDK 17" | ||
description: "Setup JDK 17" | ||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Setup JDK 17 | ||
uses: actions/[email protected] | ||
with: | ||
java-version: '17' | ||
distribution: 'temurin' | ||
cache: 'maven' |
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,81 @@ | ||
# | ||
# Copyright (c) 2021, 2023 Contributors to the Eclipse Foundation | ||
# | ||
# See the NOTICE file(s) distributed with this work for additional | ||
# information regarding copyright ownership. | ||
# | ||
# This program and the accompanying materials are made available under the | ||
# terms of the Apache License, Version 2.0 which is available at | ||
# https://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT | ||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the | ||
# License for the specific language governing permissions and limitations | ||
# under the License. | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
# | ||
|
||
--- | ||
version: 2 | ||
updates: | ||
# Maven | ||
- | ||
package-ecosystem: "maven" | ||
target-branch: main | ||
directory: / | ||
labels: | ||
- "dependabot" | ||
- "dependencies" | ||
schedule: | ||
interval: "daily" | ||
|
||
# Github Actions | ||
- | ||
package-ecosystem: "github-actions" | ||
target-branch: main | ||
directory: / | ||
labels: | ||
- "dependabot" | ||
- "github-actions" | ||
schedule: | ||
interval: "daily" | ||
|
||
# Docker | ||
- | ||
package-ecosystem: "docker" | ||
target-branch: main | ||
directory: ./provisioning/src/main/docker/ | ||
labels: | ||
- "dependabot" | ||
- "docker" | ||
schedule: | ||
interval: "daily" | ||
- | ||
package-ecosystem: "docker" | ||
target-branch: main | ||
directory: ./remoting/src/main/docker/ | ||
labels: | ||
- "dependabot" | ||
- "docker" | ||
schedule: | ||
interval: "daily" | ||
- | ||
package-ecosystem: "docker" | ||
target-branch: main | ||
directory: ./conforming/src/main/docker/ | ||
labels: | ||
- "dependabot" | ||
- "docker" | ||
schedule: | ||
interval: "daily" | ||
- | ||
package-ecosystem: "docker" | ||
target-branch: main | ||
directory: ./anything/src/main/docker/ | ||
labels: | ||
- "dependabot" | ||
- "docker" | ||
schedule: | ||
interval: "daily" |
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,113 @@ | ||
# | ||
# Copyright (c) 2023 T-Systems International GmbH | ||
# Copyright (c) 2021, 2023 Contributors to the Eclipse Foundation | ||
# | ||
# See the NOTICE file(s) distributed with this work for additional | ||
# information regarding copyright ownership. | ||
# | ||
# This program and the accompanying materials are made available under the | ||
# terms of the Apache License, Version 2.0 which is available at | ||
# https://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT | ||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the | ||
# License for the specific language governing permissions and limitations | ||
# under the License. | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
# | ||
|
||
--- | ||
name: "Build" | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
- releases | ||
tags: | ||
- '[0-9]+.[0-9]+.[0-9]+' | ||
release: | ||
types: | ||
- published | ||
pull_request: | ||
paths-ignore: | ||
- 'charts/**' | ||
- 'docs/**' | ||
- '**/*.md' | ||
branches: | ||
- '*' | ||
workflow_dispatch: | ||
|
||
|
||
concurrency: | ||
# cancel only running jobs on pull requests | ||
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
pre_job: | ||
# continue-on-error: true # Uncomment once integration is finished | ||
runs-on: ubuntu-latest | ||
# Map a step output to a job output | ||
outputs: | ||
should_skip: ${{ steps.skip_check.outputs.should_skip }} | ||
steps: | ||
- id: skip_check | ||
uses: fkirc/skip-duplicate-actions@v5 | ||
with: | ||
# All of these options are optional, so you can remove them if you are happy with the defaults | ||
concurrent_skipping: 'same_content' | ||
skip_after_successful_duplicate: 'true' | ||
do_not_skip: '["push", "pull_request", "workflow_dispatch", "schedule"]' | ||
|
||
build_java: | ||
name: Build Java | ||
runs-on: ubuntu-latest | ||
permissions: write-all | ||
needs: pre_job | ||
if: ${{ needs.pre_job.outputs.should_skip != 'true' }} | ||
strategy: | ||
fail-fast: false | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
with: | ||
submodules: recursive | ||
|
||
# We need to manually instruct maven | ||
- uses: ./.github/actions/setup-java | ||
|
||
- name: Login to GitHub Container Registry | ||
if: ${{ (github.repository == 'catenax-ng/product-agents' || github.repository == 'eclipse-tractusx/knowledge-agents') && (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v')) }} | ||
uses: docker/login-action@v2 | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Deploy Java via Maven | ||
if: ${{ (github.repository == 'catenax-ng/product-agents' || github.repository == 'eclipse-tractusx/knowledge-agents') && (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v')) }} | ||
run: | | ||
./mvnw -s settings.xml deploy -Pwith-docker-image | ||
env: | ||
GITHUB_ACTOR: ${{ github.actor }} | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Build Java via Maven | ||
if: ${{ ( github.repository != 'catenax-ng/product-agents' && github.repository != 'eclipse-tractusx/knowledge-agents') || (github.ref != 'refs/heads/main' && !startsWith(github.ref, 'refs/tags/v')) }} | ||
run: | | ||
./mvnw -s settings.xml install | ||
env: | ||
GITHUB_ACTOR: ${{ github.actor }} | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- if: success() || failure() | ||
name: Java Test Report | ||
uses: dorny/test-reporter@v1 | ||
with: | ||
name: Test Report Java | ||
path: '**/surefire-reports/TEST-*.xml' | ||
reporter: java-junit |
Oops, something went wrong.