add CI/CD DEPLOY
Some checks failed
Deploy Spring Boot App / build-and-deploy (push) Has been cancelled
Some checks failed
Deploy Spring Boot App / build-and-deploy (push) Has been cancelled
This commit is contained in:
28
.gitea/workflows/deploy.yml
Normal file
28
.gitea/workflows/deploy.yml
Normal file
@@ -0,0 +1,28 @@
|
||||
name: Deploy Spring Boot App
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
|
||||
jobs:
|
||||
build-and-deploy:
|
||||
runs-on: self-hosted
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Set up JDK 21
|
||||
uses: actions/setup-java@v3
|
||||
with:
|
||||
distrobution: 'temurin'
|
||||
java-version: '21'
|
||||
|
||||
- name: Build with Maven
|
||||
run: mvn clean package -DskipTests
|
||||
|
||||
- name: Restart Spring Boot via Supervisor
|
||||
run: sudo supervisorctl restart fercogan
|
||||
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
spring.application.name=fercoganbackend
|
||||
spring.datasource.url=jdbc:mysql://localhost:3306/testdb
|
||||
spring.datasource.username=andre
|
||||
spring.datasource.password=andre
|
||||
spring.datasource.url=jdbc:mysql://192.168.5.250:3306/TEST_fercoApp
|
||||
spring.datasource.username=ferco
|
||||
spring.datasource.password=9+k+9076[5S26#C1mn"u
|
||||
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
|
||||
|
||||
spring.jpa.hibernate.ddl-auto=update
|
||||
|
||||
Reference in New Issue
Block a user