Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
feature:
- changed-files:
- any-glob-to-any-file: ["**/*.java", "**/*.jsp", "**/*.html", "**/*.css", "**/*.js"]

config:
- changed-files:
- any-glob-to-any-file: ["**/*.xml", "**/*.properties", "**/*.yml", "**/*.yaml"]

docs:
- changed-files:
- any-glob-to-any-file: ["**/*.md", "**/*.txt"]
29 changes: 25 additions & 4 deletions .github/workflows/label.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@
# https://github.com/actions/labeler

name: Labeler
on: [pull_request_target]
on:
pull_request_target:
types: [opened, synchronize, reopened, ready_for_review]

jobs:
label:
Expand All @@ -17,6 +19,25 @@ jobs:
pull-requests: write

steps:
- uses: actions/labeler@v5.0.0
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
- name: Checkout base branch
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.base.ref }}

- name: Verify labeler config exists
id: labeler_config
shell: bash
run: |
if [[ -f ".github/labeler.yml" ]]; then
echo "exists=true" >> "$GITHUB_OUTPUT"
else
echo "exists=false" >> "$GITHUB_OUTPUT"
echo "::warning title=Labeler config missing::.github/labeler.yml was not found on base branch; skipping labeler instead of failing the workflow."
fi

- name: Apply labels
if: steps.labeler_config.outputs.exists == 'true'
uses: actions/labeler@v5
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
configuration-path: .github/labeler.yml
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,7 @@ target
.flattened-pom.xml
secrets.yml
.gradletasknamecache
.sts4-cache
.sts4-cache

# Local database volume data (runtime-only, machine-specific)
Db_volumes/
1 change: 1 addition & 0 deletions .mvn/wrapper/maven-wrapper.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.6/apache-maven-3.9.6-bin.zip
14 changes: 14 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
FROM maven:3.9.6-eclipse-temurin-21-alpine AS build
WORKDIR /app
COPY pom.xml .
# Download dependencies (cache step)
RUN mvn dependency:go-offline -B
COPY src ./src
# Build the application
RUN mvn clean package -DskipTests

FROM eclipse-temurin:21-jre-alpine
WORKDIR /app
COPY --from=build /app/target/JtSpringProject-0.0.1-SNAPSHOT.war app.war
EXPOSE 8080
ENTRYPOINT ["java", "-jar", "app.war"]
57 changes: 0 additions & 57 deletions JtProject/.classpath

This file was deleted.

45 changes: 0 additions & 45 deletions JtProject/.project

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading
Loading