add spring-dotenv and some lines of code in gitea pipeline
All checks were successful
Gitea Action Maven build / build (push) Successful in 2m10s
All checks were successful
Gitea Action Maven build / build (push) Successful in 2m10s
This commit is contained in:
parent
90b0d6fe56
commit
3e0f5c6439
@ -13,12 +13,18 @@ jobs:
|
|||||||
- name: Set up Maven
|
- name: Set up Maven
|
||||||
uses: stCarolas/setup-maven@v5
|
uses: stCarolas/setup-maven@v5
|
||||||
with:
|
with:
|
||||||
maven-version: '3.9.9'
|
maven-version: 3.9.9
|
||||||
- name: Set up JDK 21
|
- name: Set up JDK 21
|
||||||
uses: actions/setup-java@v4
|
uses: actions/setup-java@v4
|
||||||
with:
|
with:
|
||||||
java-version: '21'
|
java-version: 21
|
||||||
distribution: 'oracle'
|
distribution: 'oracle'
|
||||||
cache: 'maven'
|
cache: 'maven'
|
||||||
- name: Build with Maven
|
- name: Build, Test and Package with Maven
|
||||||
run: mvn -B package --file pom.xml
|
run: mvn -B verify --file pom.xml -e
|
||||||
|
- name: Upload artifact
|
||||||
|
uses: actions/upload-artifact@v3
|
||||||
|
with:
|
||||||
|
name: searchengine-artifact
|
||||||
|
path: |
|
||||||
|
target/*.jar
|
@ -3,14 +3,17 @@ server:
|
|||||||
|
|
||||||
spring:
|
spring:
|
||||||
datasource:
|
datasource:
|
||||||
username: root
|
username: ${DB_USERNAME}
|
||||||
password: hRMH94dJ
|
password: ${DB_PASSWORD}
|
||||||
url: jdbc:mysql://localhost:3306/search_engine?useSSL=false&requireSSL=false&allowPublicKeyRetrieval=true
|
url: ${DB_URL}
|
||||||
|
# username: root
|
||||||
|
# password: hRMH94dJ
|
||||||
|
# url: jdbc:mysql://localhost:3306/search_engine?useSSL=false&requireSSL=false&allowPublicKeyRetrieval=true
|
||||||
jpa:
|
jpa:
|
||||||
hibernate:
|
hibernate:
|
||||||
ddl-auto: update
|
# ddl-auto: update
|
||||||
# Ниже - временный вариант, таблица удаляется после завершения работы приложения
|
# Ниже - временный вариант, таблица удаляется после завершения работы приложения
|
||||||
# ddl-auto: create-drop
|
ddl-auto: create-drop
|
||||||
show-sql: true
|
show-sql: true
|
||||||
open-in-view: false
|
open-in-view: false
|
||||||
|
|
||||||
|
9
pom.xml
9
pom.xml
@ -9,8 +9,8 @@
|
|||||||
<version>1.0-SNAPSHOT</version>
|
<version>1.0-SNAPSHOT</version>
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
<maven.compiler.source>23</maven.compiler.source>
|
<maven.compiler.source>21</maven.compiler.source>
|
||||||
<maven.compiler.target>23</maven.compiler.target>
|
<maven.compiler.target>21</maven.compiler.target>
|
||||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
@ -45,5 +45,10 @@
|
|||||||
<version>8.4.0</version>
|
<version>8.4.0</version>
|
||||||
<scope>runtime</scope>
|
<scope>runtime</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>me.paulschwarz</groupId>
|
||||||
|
<artifactId>spring-dotenv</artifactId>
|
||||||
|
<version>4.0.0</version>
|
||||||
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
</project>
|
</project>
|
Loading…
x
Reference in New Issue
Block a user