-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 3118616
Showing
67 changed files
with
5,555 additions
and
0 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,27 @@ | ||
--- | ||
name: Bug report | ||
about: Create a report to help us improve | ||
title: "" | ||
labels: "" | ||
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** | ||
If applicable, add screenshots to help explain your problem. | ||
|
||
**Additional context** | ||
Add any other context about the problem 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,19 @@ | ||
--- | ||
name: Feature request | ||
about: Suggest an idea for this project | ||
title: "" | ||
labels: "" | ||
assignees: "" | ||
--- | ||
|
||
**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,15 @@ | ||
# https://docs.github.com/en/repositories/releasing-projects-on-github/automatically-generated-release-notes#configuring-automatically-generated-release-notes | ||
changelog: | ||
categories: | ||
- title: 🎉 New Features | ||
labels: | ||
- enhancement | ||
- title: 🐞 Bug Fixes | ||
labels: | ||
- bug | ||
- title: 📔 Documentation | ||
labels: | ||
- documentation | ||
- title: 🔨 Dependency Upgrades | ||
labels: | ||
- dependencies |
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,51 @@ | ||
name: build and test | ||
|
||
on: | ||
push: | ||
branches: ["main"] | ||
pull_request: | ||
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" | ||
|
||
build-maven: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Inject slug/short variables | ||
uses: rlespinasse/github-slug-action@v4 | ||
- name: Set up JDK 17 | ||
uses: actions/setup-java@v4 | ||
with: | ||
java-version: "17" | ||
distribution: "temurin" | ||
cache: "maven" | ||
- name: Build with Maven | ||
run: mvn -B verify -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=WARN | ||
- name: JUnit Report Action | ||
uses: mikepenz/[email protected] | ||
if: success() || failure() # always run even if the previous step fails | ||
with: | ||
report_paths: "**/target/*-reports/TEST-*.xml" | ||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v3 | ||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v3 | ||
- name: Build image | ||
uses: docker/build-push-action@v5 | ||
with: | ||
context: ./microservice | ||
push: false | ||
tags: itatm/ezldap:${{ env.GITHUB_REF_NAME_SLUG }} |
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,90 @@ | ||
name: release | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
branch: | ||
description: "Branch to release from ?" | ||
required: true | ||
default: "main" | ||
release-version: | ||
description: "Release version ?" | ||
required: true | ||
release-tag: | ||
description: "Release tag ?" | ||
required: true | ||
development-version: | ||
description: "Next Development version ?" | ||
required: true | ||
|
||
jobs: | ||
release: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out Git repository | ||
uses: actions/checkout@v4 | ||
with: | ||
ref: ${{ github.event.inputs.branch }} | ||
- name: Setup git user | ||
uses: fregante/setup-git-user@v2 | ||
|
||
- name: Set up JDK 17 and OSSRH auth / GPG signing | ||
uses: actions/setup-java@v4 | ||
with: | ||
java-version: 17 | ||
distribution: "temurin" | ||
cache: "maven" | ||
server-id: "ossrh" | ||
server-username: OSSRH_USERNAME | ||
server-password: OSSRH_PASSWORD | ||
gpg-private-key: ${{ secrets.gpg_private_key }} | ||
gpg-passphrase: SIGN_KEY_PASS | ||
|
||
- name: Perform maven release | ||
run: > | ||
mvn -B -ntp release:prepare release:perform | ||
-DreleaseVersion=${{ github.event.inputs.release-version }} | ||
-DdevelopmentVersion=${{ github.event.inputs.development-version }} | ||
-Dtag=${{ github.event.inputs.release-tag }} | ||
-Darguments="-DskipTests" | ||
env: | ||
SIGN_KEY_PASS: ${{ secrets.gpg_passphrase }} | ||
OSSRH_USERNAME: ${{ secrets.nexus_username }} | ||
OSSRH_PASSWORD: ${{ secrets.nexus_password }} | ||
|
||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v3 | ||
|
||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v3 | ||
|
||
- name: Login to DockerHub | ||
uses: docker/login-action@v3 | ||
with: | ||
username: ${{ secrets.DOCKERHUB_USERNAME }} | ||
password: ${{ secrets.DOCKERHUB_KEY }} | ||
|
||
- name: Build and push image | ||
uses: docker/build-push-action@v5 | ||
with: | ||
context: ./microservice | ||
push: true | ||
tags: itatm/ezldap:${{ github.event.inputs.release-tag }},itatm/ezldap:latest | ||
|
||
- name: Create GitHub Release | ||
id: create_release | ||
uses: softprops/action-gh-release@v1 | ||
with: | ||
tag_name: ${{ github.event.inputs.release-tag }} | ||
draft: false | ||
prerelease: false | ||
generate_release_notes: true | ||
|
||
- name: Update Docker Hub Description | ||
uses: peter-evans/dockerhub-description@v3 | ||
with: | ||
username: ${{ secrets.DOCKERHUB_USERNAME }} | ||
password: ${{ secrets.DOCKERHUB_KEY }} | ||
repository: itatm/ezldap | ||
readme-filepath: ./IMAGE_README.md | ||
short-description: ${{ github.event.repository.description }} |
Oops, something went wrong.