Skip to content

Commit

Permalink
Add CI/CD pipeline for Docker image build and deployment
Browse files Browse the repository at this point in the history
- Set up GitHub Actions workflow for Docker image CI/CD
- Configure build job to build and push Docker image
- Configure deploy job to pull and deploy Docker image
- Add caching for Docker layers to improve build performance
- Log in to Docker Hub using secrets
- Notify upon successful deployment
  • Loading branch information
LeonardoMeireles55 committed Jan 17, 2025
1 parent 518a049 commit 522f354
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 0 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,3 @@ FROM openjdk:21
WORKDIR /usr/src/app

COPY --from=build app/target/QualityLabPro-0.7.jar app.jar

CMD ["java", "-jar", "-Dspring.profiles.active=prod", "app.jar"]
1 change: 1 addition & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ services:
SPRING_DATASOURCE_URL: ${SPRING_DATASOURCE_URL}
SPRING_DATASOURCE_USERNAME: ${DB_USER}
SPRING_DATASOURCE_PASSWORD: ${DB_ROOT_PASSWORD}
command: ["java", "-jar", "-Dspring.profiles.active=prod", "app.jar"]
networks:
- qualitylab-net

Expand Down

0 comments on commit 522f354

Please sign in to comment.