Compare commits

..

34 Commits

Author SHA1 Message Date
5b5494108c
Add ci build and deploy
Some checks failed
continuous-integration/drone/push Build is failing
2022-10-03 08:35:12 +07:00
Sambo Chea
fa973a8204
Merge pull request #33 from CUBETIQ/dependabot/gradle/jvm-1.7.20
Bump jvm from 1.7.10 to 1.7.20
2022-10-02 23:24:28 +07:00
dependabot[bot]
a4a87d51f0
Bump jvm from 1.7.10 to 1.7.20
Bumps [jvm](https://github.com/JetBrains/kotlin) from 1.7.10 to 1.7.20.
- [Release notes](https://github.com/JetBrains/kotlin/releases)
- [Changelog](https://github.com/JetBrains/kotlin/blob/v1.7.20/ChangeLog.md)
- [Commits](https://github.com/JetBrains/kotlin/compare/v1.7.10...v1.7.20)

---
updated-dependencies:
- dependency-name: jvm
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-09-30 06:43:25 +00:00
Sambo Chea
c93a049331
Merge pull request #30 from CUBETIQ/dependabot/gradle/io.spring.dependency-management-1.0.14.RELEASE
Bump io.spring.dependency-management from 1.0.13.RELEASE to 1.0.14.RELEASE
2022-09-28 19:41:40 +07:00
dependabot[bot]
5563625a62
Bump io.spring.dependency-management
Bumps [io.spring.dependency-management](https://github.com/spring-gradle-plugins/dependency-management-plugin) from 1.0.13.RELEASE to 1.0.14.RELEASE.
- [Release notes](https://github.com/spring-gradle-plugins/dependency-management-plugin/releases)
- [Commits](https://github.com/spring-gradle-plugins/dependency-management-plugin/compare/v1.0.13.RELEASE...v1.0.14.RELEASE)

---
updated-dependencies:
- dependency-name: io.spring.dependency-management
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-09-28 12:36:40 +00:00
Sambo Chea
b875c895ab
Merge pull request #31 from CUBETIQ/dependabot/gradle/org.springframework.boot-2.7.4
Bump org.springframework.boot from 2.7.3 to 2.7.4
2022-09-28 19:35:56 +07:00
dependabot[bot]
604a931b8c
Bump org.springframework.boot from 2.7.3 to 2.7.4
Bumps [org.springframework.boot](https://github.com/spring-projects/spring-boot) from 2.7.3 to 2.7.4.
- [Release notes](https://github.com/spring-projects/spring-boot/releases)
- [Commits](https://github.com/spring-projects/spring-boot/compare/v2.7.3...v2.7.4)

---
updated-dependencies:
- dependency-name: org.springframework.boot
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-09-23 06:47:10 +00:00
Sambo Chea
a448ae9452
Update README.md 2022-09-03 21:27:23 +07:00
Sambo Chea
d3683789d5
Update README.md 2022-09-03 21:21:15 +07:00
Sambo Chea
6c11649db9
Create Jenkinsfile 2022-09-03 12:15:53 +07:00
Sambo Chea
9e54f9223b
Merge pull request #29 from CUBETIQ/dependabot/gradle/org.springdoc-springdoc-openapi-ui-1.6.11
Bump springdoc-openapi-ui from 1.6.10 to 1.6.11
2022-08-22 14:00:47 +07:00
dependabot[bot]
ba3a0e4857
Bump springdoc-openapi-ui from 1.6.10 to 1.6.11
Bumps [springdoc-openapi-ui](https://github.com/springdoc/springdoc-openapi) from 1.6.10 to 1.6.11.
- [Release notes](https://github.com/springdoc/springdoc-openapi/releases)
- [Changelog](https://github.com/springdoc/springdoc-openapi/blob/master/CHANGELOG.md)
- [Commits](https://github.com/springdoc/springdoc-openapi/compare/v1.6.10...v1.6.11)

---
updated-dependencies:
- dependency-name: org.springdoc:springdoc-openapi-ui
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-08-22 06:24:28 +00:00
Sambo Chea
395fe8b8b4
Merge pull request #28 from CUBETIQ/dependabot/gradle/org.springframework.boot-2.7.3
Bump org.springframework.boot from 2.7.2 to 2.7.3
2022-08-19 15:26:31 +07:00
dependabot[bot]
29475f0985
Bump org.springframework.boot from 2.7.2 to 2.7.3
Bumps [org.springframework.boot](https://github.com/spring-projects/spring-boot) from 2.7.2 to 2.7.3.
- [Release notes](https://github.com/spring-projects/spring-boot/releases)
- [Commits](https://github.com/spring-projects/spring-boot/compare/v2.7.2...v2.7.3)

---
updated-dependencies:
- dependency-name: org.springframework.boot
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-08-19 06:23:42 +00:00
Sambo Chea
ca6a3e8e65
Merge pull request #27 from CUBETIQ/dependabot/gradle/org.springdoc-springdoc-openapi-ui-1.6.10
Bump springdoc-openapi-ui from 1.6.9 to 1.6.10
2022-08-17 12:03:19 +07:00
dependabot[bot]
cf6cdf5a46
Bump springdoc-openapi-ui from 1.6.9 to 1.6.10
Bumps [springdoc-openapi-ui](https://github.com/springdoc/springdoc-openapi) from 1.6.9 to 1.6.10.
- [Release notes](https://github.com/springdoc/springdoc-openapi/releases)
- [Changelog](https://github.com/springdoc/springdoc-openapi/blob/master/CHANGELOG.md)
- [Commits](https://github.com/springdoc/springdoc-openapi/compare/v1.6.9...v1.6.10)

---
updated-dependencies:
- dependency-name: org.springdoc:springdoc-openapi-ui
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-08-16 06:30:36 +00:00
Sambo Chea
c94ba98f43
Merge pull request #26 from CUBETIQ/dependabot/gradle/io.spring.dependency-management-1.0.13.RELEASE
Bump io.spring.dependency-management from 1.0.12.RELEASE to 1.0.13.RELEASE
2022-08-11 17:02:15 +07:00
dependabot[bot]
9468adbfab
Bump io.spring.dependency-management
Bumps [io.spring.dependency-management](https://github.com/spring-gradle-plugins/dependency-management-plugin) from 1.0.12.RELEASE to 1.0.13.RELEASE.
- [Release notes](https://github.com/spring-gradle-plugins/dependency-management-plugin/releases)
- [Commits](https://github.com/spring-gradle-plugins/dependency-management-plugin/compare/v1.0.12.RELEASE...v1.0.13.RELEASE)

---
updated-dependencies:
- dependency-name: io.spring.dependency-management
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-08-11 06:28:59 +00:00
Sambo Chea
bae2b782ac
Update README.md 2022-07-26 11:41:46 +07:00
Sambo Chea
07ada68c79
Update gradle-wrapper.properties 2022-07-26 11:41:25 +07:00
Sambo Chea
8ae5b0015d
Merge pull request #25 from CUBETIQ/dependabot/gradle/org.springframework.boot-2.7.2
Bump org.springframework.boot from 2.7.1 to 2.7.2
2022-07-22 18:58:34 +07:00
dependabot[bot]
1b3ed6cf78
Bump org.springframework.boot from 2.7.1 to 2.7.2
Bumps [org.springframework.boot](https://github.com/spring-projects/spring-boot) from 2.7.1 to 2.7.2.
- [Release notes](https://github.com/spring-projects/spring-boot/releases)
- [Commits](https://github.com/spring-projects/spring-boot/compare/v2.7.1...v2.7.2)

---
updated-dependencies:
- dependency-name: org.springframework.boot
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-07-22 06:41:28 +00:00
Sambo Chea
2736d7efb9
Update README.md 2022-07-21 11:13:07 +07:00
Sambo Chea
ebe972e6ae
Merge pull request #22 from CUBETIQ/dependabot/gradle/plugin.jpa-1.7.10
Bump plugin.jpa from 1.7.0 to 1.7.10
2022-07-08 18:21:36 +07:00
Sambo Chea
f3d0f056e6
Merge pull request #21 from CUBETIQ/dependabot/gradle/jvm-1.7.10
Bump jvm from 1.7.0 to 1.7.10
2022-07-08 18:21:29 +07:00
dependabot[bot]
61f6762ff8
Bump jvm from 1.7.0 to 1.7.10
Bumps [jvm](https://github.com/JetBrains/kotlin) from 1.7.0 to 1.7.10.
- [Release notes](https://github.com/JetBrains/kotlin/releases)
- [Changelog](https://github.com/JetBrains/kotlin/blob/master/ChangeLog.md)
- [Commits](https://github.com/JetBrains/kotlin/commits)

---
updated-dependencies:
- dependency-name: jvm
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-07-08 11:20:08 +00:00
dependabot[bot]
86b9ad6e1e
Bump plugin.jpa from 1.7.0 to 1.7.10
Bumps [plugin.jpa](https://github.com/JetBrains/kotlin) from 1.7.0 to 1.7.10.
- [Release notes](https://github.com/JetBrains/kotlin/releases)
- [Changelog](https://github.com/JetBrains/kotlin/blob/master/ChangeLog.md)
- [Commits](https://github.com/JetBrains/kotlin/commits)

---
updated-dependencies:
- dependency-name: plugin.jpa
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-07-08 11:20:04 +00:00
Sambo Chea
9aec4b8131
Merge pull request #20 from CUBETIQ/dependabot/gradle/plugin.spring-1.7.10
Bump plugin.spring from 1.7.0 to 1.7.10
2022-07-08 18:19:11 +07:00
dependabot[bot]
bea4253bc8
Bump plugin.spring from 1.7.0 to 1.7.10
Bumps [plugin.spring](https://github.com/JetBrains/kotlin) from 1.7.0 to 1.7.10.
- [Release notes](https://github.com/JetBrains/kotlin/releases)
- [Changelog](https://github.com/JetBrains/kotlin/blob/master/ChangeLog.md)
- [Commits](https://github.com/JetBrains/kotlin/commits)

---
updated-dependencies:
- dependency-name: plugin.spring
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-07-08 06:43:00 +00:00
Sambo Chea
b6749d7103
Merge pull request #19 from CUBETIQ/dependabot/gradle/io.spring.dependency-management-1.0.12.RELEASE
Bump io.spring.dependency-management from 1.0.11.RELEASE to 1.0.12.RELEASE
2022-07-01 14:48:35 +07:00
dependabot[bot]
b2ea87d0b8
Bump io.spring.dependency-management
Bumps [io.spring.dependency-management](https://github.com/spring-gradle-plugins/dependency-management-plugin) from 1.0.11.RELEASE to 1.0.12.RELEASE.
- [Release notes](https://github.com/spring-gradle-plugins/dependency-management-plugin/releases)
- [Commits](https://github.com/spring-gradle-plugins/dependency-management-plugin/compare/v1.0.11.RELEASE...v1.0.12.RELEASE)

---
updated-dependencies:
- dependency-name: io.spring.dependency-management
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-07-01 06:47:36 +00:00
Sambo Chea
b5afafba3e
Merge pull request #18 from CUBETIQ/dependabot/gradle/org.springframework.boot-2.7.1
Bump org.springframework.boot from 2.7.0 to 2.7.1
2022-06-24 20:53:59 +07:00
dependabot[bot]
9b75827f35
Bump org.springframework.boot from 2.7.0 to 2.7.1
Bumps [org.springframework.boot](https://github.com/spring-projects/spring-boot) from 2.7.0 to 2.7.1.
- [Release notes](https://github.com/spring-projects/spring-boot/releases)
- [Commits](https://github.com/spring-projects/spring-boot/compare/v2.7.0...v2.7.1)

---
updated-dependencies:
- dependency-name: org.springframework.boot
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-06-24 06:44:23 +00:00
Sambo Chea
fec3fb4f8b
Update README.md 2022-06-13 20:05:07 +07:00
7 changed files with 80 additions and 13 deletions

47
.github/workflows/ci.yml vendored Normal file
View File

@ -0,0 +1,47 @@
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
name: CI
on:
push:
branches: ['main']
pull_request:
branches: ['main']
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
registry: ${{ secrets.DOCKER_REGISTRY }}
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- uses: actions/checkout@v3
- name: Build the Docker image
run: |
docker build . --file Dockerfile --tag registry.ctdn.net/spring-web-api:latest
docker push registry.ctdn.net/spring-web-api:latest
deploy:
runs-on: self-hosted
steps:
- name: Cloning repo
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Push to dokku
uses: dokku/github-action@master
with:
git_remote_url: 'ssh://dokku@heroku.ctdn.net:2222/spring-web-modules'
ssh_private_key: ${{ secrets.SSH_PRIVATE_KEY }}
branch: main
git_push_flags: --force

19
Jenkinsfile vendored Normal file
View File

@ -0,0 +1,19 @@
pipeline {
agent any
triggers {
pollSCM '* * * * *'
}
stages {
stage('Build') {
steps {
sh './gradlew assemble'
}
}
stage('BootJar') {
steps {
sh './gradlew bootJar'
}
}
}
}

View File

@ -1,16 +1,17 @@
# CUBETIQ Web Modules (Template) # CUBETIQ Web Modules (Template)
- Setup and Default Web Configuration - Setup and Default Web Configuration
- Swagger UI and API's Documentation (SpringFox) - Swagger UI and API's Documentation (SpringDoc)
- General Purpose for External and Internal use-cases - General Purpose for External and Internal use-cases
- Dockerfile and Docker profile build support - Dockerfile and Docker profile build support
- Kubernetes support - Kubernetes support
- Jenkins Support
### Language and Framework ### Language and Framework
- Spring Boot: 2.7.0 - Spring Boot: 2.7.3
- Kotlin: 1.7.0 - Kotlin: 1.7.10
- Gradle: 7.4.1 - Gradle: 7.5
# Modules # Modules

View File

@ -38,7 +38,7 @@ dependencies {
implementation("org.springframework.boot:spring-boot-starter-data-redis") implementation("org.springframework.boot:spring-boot-starter-data-redis")
// Migrating from SpringFox // Migrating from SpringFox
implementation("org.springdoc:springdoc-openapi-ui:1.6.9") implementation("org.springdoc:springdoc-openapi-ui:1.6.11")
// SPRING FRAMEWORK AND CORE // SPRING FRAMEWORK AND CORE
implementation("org.springframework.boot:spring-boot-starter-web") implementation("org.springframework.boot:spring-boot-starter-web")

View File

@ -6,6 +6,6 @@ APP_PROFILE=demo
VERSION=demo VERSION=demo
IMAGE=spring-web-api IMAGE=spring-web-api
CONTAINER=$IMAGE CONTAINER=$IMAGE
REGISTRY=registry.kh.cubetiqs.com REGISTRY=registry.ctdn.net
EXPOSE_PORT=8080 EXPOSE_PORT=8080
ROOT_HUB=$REGISTRY/$IMAGE:$VERSION ROOT_HUB=$REGISTRY/$IMAGE:$VERSION

View File

@ -1,11 +1,11 @@
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins { plugins {
id("org.springframework.boot") version "2.7.0" apply false id("org.springframework.boot") version "2.7.4" apply false
id("io.spring.dependency-management") version "1.0.11.RELEASE" apply false id("io.spring.dependency-management") version "1.0.14.RELEASE" apply false
kotlin("jvm") version "1.7.0" apply false kotlin("jvm") version "1.7.20" apply false
kotlin("plugin.spring") version "1.7.0" apply false kotlin("plugin.spring") version "1.7.10" apply false
kotlin("plugin.jpa") version "1.7.0" apply false kotlin("plugin.jpa") version "1.7.10" apply false
} }
allprojects { allprojects {

View File

@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4.1-bin.zip distributionUrl=https\://services.gradle.org/distributions/gradle-7.5-bin.zip
zipStoreBase=GRADLE_USER_HOME zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists zipStorePath=wrapper/dists