Skip to content

Commit 430b78b

Browse files
committed
ci: docker and github actions
1 parent ef518a7 commit 430b78b

File tree

9 files changed

+189
-1
lines changed

9 files changed

+189
-1
lines changed

cookiecutter.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,6 @@
99
"domain_plural_uppercase": "{{cookiecutter.domain_plural.upper()}}",
1010
"group_id": "org.{{cookiecutter.domain}}",
1111
"artifact_id": "{{cookiecutter.domain}}",
12-
"package_name": "{{cookiecutter.domain}}"
12+
"package_name": "{{cookiecutter.domain}}",
13+
"_copy_without_render": [".github/workflows/*.*"]
1314
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
FROM gcr.io/distroless/java21-debian12
2+
3+
WORKDIR /app
4+
5+
COPY ../../bootstrap/target/{{cookiecutter.domain}}-exec.jar .
6+
7+
CMD ["{{cookiecutter.domain}}-exec.jar"]
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* @devs-from-matrix/app-generator-team
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
# How to contribute
2+
3+
We are really glad you're reading this, because we need volunteer developers to help this project come to fruition.
4+
5+
When contributing to this repository, please first discuss the change you wish to make via issue,
6+
email, slack or any other method with the owners of this repository before making a change.
7+
8+
Please note we have a code of conduct, please follow it in all your interactions with the project.
9+
10+
## Pull request process
11+
12+
- Ensure you have performed a self-review of your changes
13+
- Ensure the new changes generate no new warnings
14+
- Ensure you have added tests that prove the fix is effective or that the feature works
15+
- Ensure new and existing unit tests pass locally with my changes
16+
- Ensure your commit message should follow [conventional commit message guidelines](https://www.conventionalcommits.org/en/v1.0.0/)
17+
18+
## Code of Conduct
19+
20+
### Our pledge
21+
22+
In the interest of fostering an open and welcoming environment, we as
23+
contributors and maintainers pledge to making participation in our project and
24+
our community a harassment-free experience for everyone, regardless of age, body
25+
size, disability, ethnicity, gender identity and expression, level of experience,
26+
nationality, personal appearance, race, religion, or sexual identity and
27+
orientation.
28+
29+
### Our standards
30+
31+
Examples of behavior that contributes to creating a positive environment
32+
include:
33+
34+
* Using welcoming and inclusive language
35+
* Being respectful of differing viewpoints and experiences
36+
* Gracefully accepting constructive criticism
37+
* Focusing on what is best for the community
38+
* Showing empathy towards other community members
39+
40+
Examples of unacceptable behavior by participants include:
41+
42+
* The use of sexualized language or imagery and unwelcome sexual attention or
43+
advances
44+
* Trolling, insulting/derogatory comments, and personal or political attacks
45+
* Public or private harassment
46+
* Publishing others' private information, such as a physical or electronic
47+
address, without explicit permission
48+
* Other conduct which could reasonably be considered inappropriate in a
49+
professional setting
50+
51+
### Our responsibilities
52+
53+
Project maintainers are responsible for clarifying the standards of acceptable
54+
behavior and are expected to take appropriate and fair corrective action in
55+
response to any instances of unacceptable behavior.
56+
57+
Project maintainers have the right and responsibility to remove, edit, or
58+
reject comments, commits, code, wiki edits, issues, and other contributions
59+
that are not aligned to this Code of Conduct, or to ban temporarily or
60+
permanently any contributor for other behaviors that they deem inappropriate,
61+
threatening, offensive, or harmful.
62+
63+
### Scope
64+
65+
This Code of Conduct applies both within project spaces and in public spaces
66+
when an individual is representing the project or its community. Examples of
67+
representing a project or community include using an official project e-mail
68+
address, posting via an official social media account, or acting as an appointed
69+
representative at an online or offline event. Representation of a project may be
70+
further defined and clarified by project maintainers.
71+
72+
### Enforcement
73+
74+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
75+
reported by contacting the project team at [INSERT EMAIL ADDRESS]. All
76+
complaints will be reviewed and investigated and will result in a response that
77+
is deemed necessary and appropriate to the circumstances. The project team is
78+
obligated to maintain confidentiality with regard to the reporter of an incident.
79+
Further details of specific enforcement policies may be posted separately.
80+
81+
Project maintainers who do not follow or enforce the Code of Conduct in good
82+
faith may face temporary or permanent repercussions as determined by other
83+
members of the project's leadership.
84+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve
4+
title: "[Bug]"
5+
labels: ":bug: bug"
6+
assignees: 'paul58914080, anupbaranwal'
7+
8+
---
9+
10+
**Describe the bug**
11+
A clear and concise description of what the bug is.
12+
13+
**To Reproduce**
14+
Steps to reproduce the behavior:
15+
1. Go to '...'
16+
2. Click on '....'
17+
3. Scroll down to '....'
18+
4. See error
19+
20+
**Expected behavior**
21+
A clear and concise description of what you expected to happen.
22+
23+
**Screenshots**
24+
If applicable, add screenshots to help explain your problem.
25+
26+
**Additional context**
27+
Add any other context about the problem here.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for this project
4+
title: "[New Feature]"
5+
labels: ":rocket: enhancement"
6+
assignees: 'paul58914080, anupbaranwal'
7+
8+
---
9+
10+
**Is your feature request related to a problem? Please describe.**
11+
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
12+
13+
**Describe the solution you'd like**
14+
A clear and concise description of what you want to happen.
15+
16+
**Describe alternatives you've considered**
17+
A clear and concise description of any alternative solutions or features you've considered.
18+
19+
**Additional context**
20+
Add any other context or screenshots about the feature request here.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Description
2+
3+
<!-- Description about this pull request -->
4+
5+
Closes : <!-- refer the github issue. Ex: #084-->
6+
7+
# Checklist:
8+
9+
- [ ] My code follows the contribution guidelines of this project
10+
- [ ] I have performed a self-review of my own code
11+
- [ ] My changes generate no new warnings
12+
- [ ] I have added tests that prove my fix is effective or that my feature works
13+
- [ ] New and existing unit tests pass locally with my changes
14+
- [ ] My commits follow [conventional commit message guidelines](https://www.conventionalcommits.org/en/v1.0.0/)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: maven
4+
directory: "/"
5+
schedule:
6+
interval: daily
7+
time: "23:30"
8+
open-pull-requests-limit: 10
9+
reviewers:
10+
- paul58914080
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: CI
2+
on:
3+
pull_request:
4+
branches: [ main ]
5+
workflow_dispatch:
6+
jobs:
7+
build:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v2
11+
- name: Set up JDK 21
12+
uses: actions/setup-java@v1
13+
with:
14+
java-version: 21
15+
- name: Cache Maven packages
16+
uses: actions/cache@v2
17+
with:
18+
path: ~/.m2
19+
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
20+
restore-keys: ${{ runner.os }}-m2
21+
- name: Build with Maven
22+
run: mvn clean install -ntp
23+
- name: Upload coverage to Codecov
24+
uses: codecov/codecov-action@v1

0 commit comments

Comments
 (0)