-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9 from eiriksgata/open-shamrock
Open shamrock
- Loading branch information
Showing
160 changed files
with
7,817 additions
and
728 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
name: Docker Image CI/CD | ||
|
||
on: | ||
push: | ||
paths-ignore: # 忽略一些不必要的文件 | ||
- ".gitignore" | ||
- "README.md" | ||
- ".vscode/**" | ||
branches: [ "main" ] | ||
|
||
#tags: # 当我们提交代码为tag 是以'v'开头的时候才会触发自动部署到服务端 | ||
# - 'v*' | ||
|
||
jobs: | ||
docker-image-build-push: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-java@v4 | ||
with: | ||
distribution: 'zulu' | ||
java-version: '11' | ||
cache: 'maven' | ||
cache-dependency-path: 'pom.xml' # optional | ||
|
||
- uses: docker/login-action@v1 | ||
with: | ||
registry: ghcr.io # 声明镜像源 | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.HUB_GITHUB_ACCESS_TOKEN }} | ||
|
||
- uses: docker/login-action@v1 | ||
with: | ||
registry: ${{ secrets.TC_DOCKER_HUB_ADDRESS }} # 声明镜像源 | ||
username: ${{ secrets.TC_DOCKER_HUB_USERNAME }} | ||
password: ${{ secrets.TC_DOCKER_HUB_PASSWORD }} | ||
- name: Build with Maven | ||
run: mvn -B package --file pom.xml | ||
|
||
- name: Build docker image | ||
run: | ||
docker buildx build --file Dockerfile --tag rulateday-api-server-uat:latest . | ||
|
||
- name: create ghcr tag | ||
run: docker image tag rulateday-api-server-uat:latest ghcr.io/rulateday/rulateday-api-server-uat:latest | ||
|
||
- name: ghcr.io push image | ||
run: docker push ghcr.io/rulateday/rulateday-api-server-uat:latest | ||
|
||
- name: create tencent docker hub tag | ||
run: docker image tag rulateday-api-server-uat:latest ${{ secrets.TC_DOCKER_HUB_ADDRESS }}/rulateday/rulateday-api-server-uat:latest | ||
|
||
- name: tencent push image | ||
run: docker push ${{ secrets.TC_DOCKER_HUB_ADDRESS }}/rulateday/rulateday-api-server-uat:latest | ||
|
||
|
||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,4 +33,5 @@ build/ | |
.vscode/ | ||
/application-config.yaml | ||
import | ||
resources | ||
resources | ||
config |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 14 additions & 4 deletions
18
src/main/java/com/github/eiriksgata/rulateday/platform/RulatedayApiApplication.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,25 @@ | ||
package com.github.eiriksgata.rulateday.platform; | ||
|
||
import com.github.eiriksgata.rulateday.platform.dice.init.LoadDatabaseFile; | ||
import org.mybatis.spring.annotation.MapperScan; | ||
import org.springframework.boot.SpringApplication; | ||
import org.springframework.boot.autoconfigure.SpringBootApplication; | ||
import org.springframework.boot.context.properties.ConfigurationPropertiesScan; | ||
import org.springframework.context.annotation.ComponentScan; | ||
|
||
@SpringBootApplication | ||
@MapperScan(basePackages = "com.github.eiriksgata.rulateday.platform.mapper") | ||
@MapperScan(basePackages = {"com.github.eiriksgata.rulateday.platform.mapper"}) | ||
@ComponentScan(basePackages = { | ||
"com.github.eiriksgata.rulateday.platform", | ||
"com.github.eiriksgata.rulateday.platform.dice", | ||
"com.github.eiriksgata.rulateday.platform.dice.service", | ||
"com.github.eiriksgata.rulateday.platform.dice.instruction", | ||
}) | ||
public class RulatedayApiApplication { | ||
|
||
public static void main(String[] args) { | ||
SpringApplication.run(RulatedayApiApplication.class, args); | ||
} | ||
public static void main(String[] args) { | ||
LoadDatabaseFile.init(); | ||
SpringApplication.run(RulatedayApiApplication.class, args); | ||
} | ||
|
||
} |
21 changes: 0 additions & 21 deletions
21
src/main/java/com/github/eiriksgata/rulateday/platform/ai/draw/TimeoutTaskTimer.java
This file was deleted.
Oops, something went wrong.
49 changes: 0 additions & 49 deletions
49
src/main/java/com/github/eiriksgata/rulateday/platform/controller/AiDrawController.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.