ci: implements jenkins deploy

This commit is contained in:
2026-02-21 10:47:21 +01:00
parent 4e72e6da77
commit 76e20c2260
4 changed files with 6 additions and 7 deletions

View File

@@ -9,7 +9,7 @@ COPY . .
RUN mvn clean package -DskipTests
# Stage 2: Run
FROM openjdk:21-jdk
FROM eclipse-temurin:21-jdk
WORKDIR /app
COPY --from=build /app/bootstrap/target/*.jar app.jar
EXPOSE 80

3
Jenkinsfile vendored
View File

@@ -70,5 +70,8 @@ pipeline {
failure {
echo "❌ Pipeline failed!"
}
always {
deleteDir()
}
}
}

View File

@@ -6,7 +6,7 @@ NAMESPACE=andromeda
TAG?=latest
HOST_PORT=8181
CONTAINER_PORT=80
CONTAINER_PORT=8080
IMAGE_FULL=$(REGISTRY_URL)/$(NAMESPACE)/$(IMAGE_NAME):$(TAG)
@@ -22,6 +22,7 @@ push:
run:
docker run -d \
--name $(APP_NAME) \
--network andromeda \
-p $(HOST_PORT):$(CONTAINER_PORT) \
--env-file .env \
$(IMAGE_FULL)

View File

@@ -124,11 +124,6 @@ alter table if exists experience_skill
foreign key (experience_id)
references experience;
alter table if exists profile_social_link
add constraint FKfh1pbfvvg3palcr1yip6jffik
foreign key (PROFILE_ID)
references profile;
alter table if exists project_feature
add constraint FKdifppyvrfito5in15ox4db0up
foreign key (project_id)