ci: init
This commit is contained in:
@@ -0,0 +1,26 @@
|
|||||||
|
jobs:
|
||||||
|
release:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
|
||||||
|
- name: Set up JDK
|
||||||
|
uses: actions/setup-java@v4
|
||||||
|
with:
|
||||||
|
java-version: '17'
|
||||||
|
distribution: 'temurin'
|
||||||
|
|
||||||
|
- name: Login to Gitea Registry
|
||||||
|
run: echo "${{ secrets.GITEA_TOKEN }}" | docker login git.demonkernel.io.vn -u "${{ secrets.GITEA_USER }}" --password-stdin
|
||||||
|
|
||||||
|
- name: Install Node.js
|
||||||
|
uses: actions/setup-node@v4
|
||||||
|
with:
|
||||||
|
node-version: 'lts/*'
|
||||||
|
|
||||||
|
- name: Run Semantic Release
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
run: npx semantic-release
|
||||||
+4
-6
@@ -7,15 +7,13 @@
|
|||||||
[
|
[
|
||||||
"@semantic-release/exec",
|
"@semantic-release/exec",
|
||||||
{
|
{
|
||||||
"prepareCmd": "mvn versions:set -DnewVersion=${nextRelease.version} && mvn clean compile"
|
"prepareCmd": "mvn versions:set -DnewVersion=${nextRelease.version}",
|
||||||
|
"publishCmd": "mvn clean package -Dquarkus.container-image.tag=${nextRelease.version} -DskipTests"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
["@saithodev/semantic-release-gitea", {
|
["@saithodev/semantic-release-gitea", {
|
||||||
"giteaUrl": "https://git.demonkernel.io.vn/",
|
"giteaUrl": "https://git.demonkernel.io.vn/"
|
||||||
"assets": [
|
|
||||||
{"path": "dist/asset.min.css", "label": "CSS distribution"},
|
|
||||||
{"path": "dist/asset.min.js", "label": "JS distribution"}
|
|
||||||
]
|
|
||||||
}]
|
}]
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
@@ -1,7 +1,5 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
||||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
|
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<groupId>com.drinkool</groupId>
|
<groupId>com.drinkool</groupId>
|
||||||
<artifactId>account-service</artifactId>
|
<artifactId>account-service</artifactId>
|
||||||
@@ -57,6 +55,10 @@
|
|||||||
<groupId>io.quarkus</groupId>
|
<groupId>io.quarkus</groupId>
|
||||||
<artifactId>quarkus-rest</artifactId>
|
<artifactId>quarkus-rest</artifactId>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>io.quarkus</groupId>
|
||||||
|
<artifactId>quarkus-container-image-docker</artifactId>
|
||||||
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>io.quarkus</groupId>
|
<groupId>io.quarkus</groupId>
|
||||||
<artifactId>quarkus-junit</artifactId>
|
<artifactId>quarkus-junit</artifactId>
|
||||||
@@ -119,8 +121,7 @@
|
|||||||
<configuration>
|
<configuration>
|
||||||
<argLine>@{argLine}</argLine>
|
<argLine>@{argLine}</argLine>
|
||||||
<systemPropertyVariables>
|
<systemPropertyVariables>
|
||||||
<native.image.path>
|
<native.image.path>${project.build.directory}/${project.build.finalName}-runner</native.image.path>
|
||||||
${project.build.directory}/${project.build.finalName}-runner</native.image.path>
|
|
||||||
<java.util.logging.manager>org.jboss.logmanager.LogManager</java.util.logging.manager>
|
<java.util.logging.manager>org.jboss.logmanager.LogManager</java.util.logging.manager>
|
||||||
<maven.home>${maven.home}</maven.home>
|
<maven.home>${maven.home}</maven.home>
|
||||||
</systemPropertyVariables>
|
</systemPropertyVariables>
|
||||||
|
|||||||
@@ -6,3 +6,9 @@ quarkus.datasource.jdbc.url=jdbc:postgresql://localhost:5432/postgres
|
|||||||
|
|
||||||
# Tự động tạo bảng từ Entity (chỉ dùng cho môi trường dev)
|
# Tự động tạo bảng từ Entity (chỉ dùng cho môi trường dev)
|
||||||
quarkus.hibernate-orm.database.generation=update
|
quarkus.hibernate-orm.database.generation=update
|
||||||
|
|
||||||
|
# URL của Gitea Registry (thường là gitea.yourdomain.com)
|
||||||
|
quarkus.container-image.registry=git.demonkernel.io.vn
|
||||||
|
quarkus.container-image.group=FoodSurf
|
||||||
|
quarkus.container-image.name=auth-service
|
||||||
|
quarkus.container-image.push=true
|
||||||
Reference in New Issue
Block a user