-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #99 from InseeFr/develop
feat: modularization and add questioning communications
- Loading branch information
Showing
338 changed files
with
3,408 additions
and
2,682 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 |
---|---|---|
|
@@ -9,14 +9,14 @@ jobs: | |
name: Build | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v4 | ||
- name: Set up JDK 21 | ||
uses: actions/setup-java@v3 | ||
uses: actions/setup-java@v4 | ||
with: | ||
distribution: temurin | ||
java-version: 21 | ||
- name: Build with Maven | ||
run: mvn -B clean package | ||
run: mvn -B clean package --no-transfer-progress | ||
- name: Run Trivy vulnerability scanner | ||
uses: aquasecurity/[email protected] | ||
with: | ||
|
@@ -26,10 +26,10 @@ jobs: | |
vuln-type: 'os,library' | ||
severity: 'CRITICAL,HIGH' | ||
- name: Upload jar | ||
uses: actions/upload-artifact@v3 | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: jar | ||
path: target/*.jar | ||
name: app-jar | ||
path: platine-management-api/target/*.jar | ||
|
||
get_version: | ||
needs: build | ||
|
@@ -40,7 +40,7 @@ jobs: | |
version: ${{steps.version.outputs.version}} | ||
steps: | ||
- name: Checkout current branch | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v4 | ||
with: | ||
ref: ${{ github.ref }} | ||
- name: Get current version | ||
|
@@ -53,7 +53,7 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout current branch | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v4 | ||
with: | ||
ref: ${{ github.ref }} | ||
- uses: softprops/action-gh-release@v1 | ||
|
@@ -72,15 +72,15 @@ jobs: | |
needs: get_version | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v4 | ||
with: | ||
ref: ${{ github.ref }} | ||
- name: Download jar | ||
id: download | ||
uses: actions/download-artifact@v3 | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: jar | ||
path: target | ||
name: app-jar | ||
path: platine-management-api/target | ||
- uses: docker/setup-qemu-action@v2 | ||
- uses: docker/setup-buildx-action@v2 | ||
- uses: docker/login-action@v2 | ||
|
@@ -90,7 +90,7 @@ jobs: | |
- uses: docker/build-push-action@v4 | ||
with: | ||
platforms: linux/amd64,linux/arm64 | ||
context: . | ||
context: platine-management-api | ||
push: true | ||
tags: | | ||
inseefr/platine-management-back-office:${{ needs.get_version.outputs.version }}-rc | ||
|
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
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
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 |
---|---|---|
|
@@ -12,19 +12,21 @@ jobs: | |
name: Build and analyze | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis | ||
- name: Set up JDK 21 | ||
uses: actions/setup-java@v3 | ||
uses: actions/setup-java@v4 | ||
with: | ||
java-version: 21 | ||
distribution: 'temurin' | ||
- name: Run Trivy vulnerability scanner | ||
uses: aquasecurity/[email protected] | ||
uses: aquasecurity/[email protected] | ||
env: | ||
TRIVY_DB_REPOSITORY: public.ecr.aws/aquasecurity/trivy-db:2 | ||
with: | ||
format: 'table' | ||
scan-type: 'repo' | ||
exit-code: '1' | ||
vuln-type: 'os,library' | ||
severity: 'CRITICAL,HIGH' | ||
severity: 'CRITICAL,HIGH' |
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
This file was deleted.
Oops, something went wrong.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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,20 @@ | ||
FROM eclipse-temurin:21.0.4_7-jre-alpine | ||
|
||
ENV PATH_TO_JAR=/opt/app/app.jar | ||
WORKDIR /opt/app/ | ||
COPY ./target/*.jar $PATH_TO_JAR | ||
|
||
ENV JAVA_TOOL_OPTIONS_DEFAULT \ | ||
-XX:MaxRAMPercentage=75 | ||
|
||
# Setup a non-root user context (security) | ||
RUN addgroup -g 1000 tomcatgroup | ||
RUN adduser -D -s / -u 1000 tomcatuser -G tomcatgroup | ||
RUN mkdir /opt/app/temp-files | ||
RUN chown -R 1000:1000 /opt/app | ||
|
||
USER 1000 | ||
|
||
ENTRYPOINT [ "/bin/sh", "-c", \ | ||
"export JAVA_TOOL_OPTIONS=\"$JAVA_TOOL_OPTIONS_DEFAULT $JAVA_TOOL_OPTIONS\"; \ | ||
exec java -jar $PATH_TO_JAR" ] |
Oops, something went wrong.