generated from openmcp-project/repository-template
-
Notifications
You must be signed in to change notification settings - Fork 1
feat: open source build repository #1
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
Merged
Merged
Changes from 4 commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
b415852
feat: default files and setup
maximiliantech 1f50b4b
docs: migrate README
maximiliantech 807696a
chore: migrate all files
maximiliantech b4cb147
run: git merge main
maximiliantech b577015
fix: link to ghcr
maximiliantech d1c59a5
fix: typo
maximiliantech c67e6bd
fix: typo
maximiliantech File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,16 @@ | ||
| --- | ||
| name: Bug Report | ||
| about: Report a bug | ||
| labels: kind/bug | ||
|
|
||
| --- | ||
|
|
||
| **What happened**: | ||
|
|
||
| **What you expected to happen**: | ||
|
|
||
| **How to reproduce it (as minimally and precisely as possible)**: | ||
|
|
||
| **Anything else we need to know**: | ||
|
|
||
| **Environment**: |
This file contains hidden or 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,10 @@ | ||
| --- | ||
| name: Enhancement Request | ||
| about: Suggest an enhancement | ||
| labels: kind/enhancement | ||
|
|
||
| --- | ||
|
|
||
| **What would you like to be added**: | ||
|
|
||
| **Why is this needed**: |
This file contains hidden or 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,20 @@ | ||
| **What this PR does / why we need it**: | ||
|
|
||
| **Which issue(s) this PR fixes**: | ||
| Fixes # | ||
|
|
||
| **Special notes for your reviewer**: | ||
|
|
||
| **Release note**: | ||
| <!-- Write your release note: | ||
| 1. Enter your release note in the below block. | ||
| 2. If no release note is required, just write "NONE" within the block. | ||
|
|
||
| Format of block header: <category> <target_group> | ||
| Possible values: | ||
| - category: breaking|feature|bugfix|doc|other | ||
| - target_group: user|operator|developer|dependency | ||
| --> | ||
| ```feature user | ||
|
|
||
| ``` |
This file contains hidden or 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,3 @@ | ||
| # editor and IDE paraphernalia | ||
| /.vscode | ||
| /.idea |
This file contains hidden or 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 |
|---|---|---|
|
|
@@ -4,7 +4,9 @@ | |
|
|
||
| All members of the project community must abide by the [SAP Open Source Code of Conduct](https://github.com/SAP/.github/blob/main/CODE_OF_CONDUCT.md). | ||
| Only by respecting each other we can develop a productive, collaborative community. | ||
| Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting [a project maintainer](.reuse/dep5). | ||
| Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement at [[email protected]](mailto:[email protected]) (SAP Open Source Program Office). All complaints will be reviewed and investigated promptly and fairly. | ||
|
|
||
| All community leaders are obligated to respect the privacy and security of the reporter of any incident. | ||
|
|
||
| ## Engaging in Our Project | ||
|
|
||
|
|
||
This file contains hidden or 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,12 @@ | ||
| # Use distroless as minimal base image to package the component binary | ||
| # Refer to https://github.com/GoogleContainerTools/distroless for more details | ||
| FROM gcr.io/distroless/static-debian12:nonroot | ||
| ARG TARGETOS | ||
| ARG TARGETARCH | ||
| ARG COMPONENT | ||
| WORKDIR / | ||
| COPY bin/$COMPONENT.$TARGETOS-$TARGETARCH /<component> | ||
| USER 65532:65532 | ||
|
|
||
| # docker doesn't substitue args in ENTRYPOINT, so we replace this during the build script | ||
| ENTRYPOINT ["/<component>"] |
This file contains hidden or 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,4 @@ | ||
| %: | ||
| @echo "This repository uses task (https://taskfile.dev) instead of make." | ||
| @echo "Run 'go install github.com/go-task/task/v3/cmd/task@latest' to install the latest version." | ||
| @echo "Then run 'task -l' to list available tasks." |
This file contains hidden or 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
This file contains hidden or 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,67 @@ | ||
| version: 3 | ||
|
|
||
| # This Taskfile is meant to be included for controller repos. | ||
| # In addition to the library tasks, it contains tasks for building binaries and images. | ||
|
|
||
| run: once | ||
| method: checksum | ||
|
|
||
| includes: | ||
| lib: | ||
| taskfile: Taskfile_library.yaml | ||
| flatten: true | ||
| build: | ||
| taskfile: tasks_build.yaml | ||
| aliases: | ||
| - bld | ||
| - b | ||
|
|
||
| tasks: | ||
|
|
||
| # The following tasks are non-namespaced aliases for the most important namespaced tasks. | ||
| # This helps with visibility on 'task -l'. | ||
|
|
||
| all: | ||
| desc: " Run code generation and validation, build all artifacts and push them to the respective registries." | ||
| summary: This is an alias for 'build:all'. | ||
| run: once | ||
| deps: | ||
| - build:all | ||
|
|
||
| build: | ||
| desc: " Build the binaries. Includes code generation and validation." | ||
| summary: This is an alias for 'build:bin:all'. | ||
| run: once | ||
| deps: | ||
| - build:bin:all | ||
|
|
||
| build-raw: | ||
| desc: " Like 'build', but skips code generation/validation tasks." | ||
| summary: This is an alias for 'build:bin:build-multi-raw'. | ||
| run: once | ||
| deps: | ||
| - build:bin:build-multi-raw | ||
|
|
||
| image: | ||
| desc: " Build and push the images. Includes binary build." | ||
| summary: This is an alias for 'build:img:all'. | ||
| run: once | ||
| deps: | ||
| - build:img:all | ||
|
|
||
| helm: | ||
| desc: " Package and push the helm charts." | ||
| summary: This is an alias for 'build:helm:all'. | ||
| aliases: | ||
| - chart | ||
| - helm-chart | ||
| run: once | ||
| deps: | ||
| - build:helm:all | ||
|
|
||
| ocm: | ||
| desc: " Build and push the OCM component." | ||
| summary: This is an alias for 'build:ocm:all'. | ||
| run: once | ||
| deps: | ||
| - build:ocm:all |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.