diff --git a/.github/workflows/spring-boot-ci.yml b/.github/workflows/spring-boot-ci.yml index 2513af7..d0fae19 100644 --- a/.github/workflows/spring-boot-ci.yml +++ b/.github/workflows/spring-boot-ci.yml @@ -5,8 +5,6 @@ on: branches: - 'main' pull_request: - branches: - - '**' # Run on all PRs to any branch jobs: build-and-test: @@ -33,6 +31,13 @@ jobs: DATABASE_USERNAME: ${{ secrets.DATABASE_USERNAME }} DATABASE_PASSWORD: ${{ secrets.DATABASE_PASSWORD }} DATABASE_DRIVER_CLASS_NAME: ${{ secrets.DATABASE_DRIVER_CLASS_NAME }} + MAIL_SERVICE_HOST: ${{ secrets.MAIL_SERVICE_HOST }} + MAIL_SERVICE_PORT: ${{ secrets.MAIL_SERVICE_PORT }} + MAIL_SERVICE_USERNAME: ${{ secrets.MAIL_SERVICE_USERNAME }} + MAIL_SERVICE_PASSWORD: ${{ secrets.MAIL_SERVICE_PASSWORD }} + MAIL_SERVICE_SMTP: ${{ secrets.MAIL_SERVICE_SMTP }} + MAIL_SERVICE_STARTTLS: ${{ secrets.MAIL_SERVICE_STARTTLS }} + MAIL_SERVICE_DOMAIN_NAME: ${{ secrets.MAIL_SERVICE_DOMAIN_NAME }} - name: Run Tests run: mvn test diff --git a/.gitignore b/.gitignore index b60a0da..5944935 100644 --- a/.gitignore +++ b/.gitignore @@ -35,3 +35,5 @@ build/ .DS_Store src/main/resources/application-dev.properties +.github/workflows/java-code-quality.yml +.github/workflows/maven-publish.yml diff --git a/src/main/resources/application-production.properties b/src/main/resources/application-production.properties index 5bbc92b..6b8edc4 100644 --- a/src/main/resources/application-production.properties +++ b/src/main/resources/application-production.properties @@ -1,3 +1,4 @@ +# --- Database Setup --- spring.datasource.url=${DATABASE_URL} spring.datasource.username=${DATABASE_USERNAME} spring.datasource.password=${DATABASE_PASSWORD} @@ -5,3 +6,12 @@ spring.datasource.driver-class-name=${DATABASE_DRIVER_CLASS_NAME} spring.jpa.hibernate.ddl-auto=update spring.jpa.show-sql=false + +# --- Mail Service Setup --- +spring.mail.host=${MAIL_SERVICE_HOST} +spring.mail.port=${MAIL_SERVICE_PORT} +spring.mail.username=${MAIL_SERVICE_USERNAME} +spring.mail.password=${MAIL_SERVICE_PASSWORD} +spring.mail.properties.mail.smtp.auth=${MAIL_SERVICE_SMTP} +spring.mail.properties.mail.starttls.enable=${MAIL_SERVICE_STARTTLS} +spring.mail.properties.domain_name=${MAIL_SERVICE_DOMAIN_NAME} \ No newline at end of file