Updated build scripts
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Sambo Chea 2022-04-11 10:29:25 +07:00
parent 32c59a69f2
commit bc81cb0988
Signed by: sombochea
GPG Key ID: 3C7CF22A05D95490
5 changed files with 8 additions and 5 deletions

View File

@ -4,11 +4,11 @@ name: ci
steps: steps:
- name: submodules - name: submodules
image: d.ctdn.net/alpine/git image: alpine/git
commands: commands:
- git submodule update --init --recursive - git submodule update --init --recursive
- name: test - name: test
image: d.ctdn.net/cubetiq/openjdk:11u-ubuntu image: cubetiq/openjdk:11u-ubuntu
commands: commands:
- apt-get update && apt-get install git -y - apt-get update && apt-get install git -y
- sh gradlew bootJar - sh gradlew bootJar

View File

@ -0,0 +1,2 @@
server:
port: ${APP_PORT:8080}

View File

@ -1,2 +0,0 @@
server:
port: 8080

View File

@ -13,7 +13,7 @@ echo "===> Moving App File <==="
bash "$SCRIPT_DIR"/move-file.sh bash "$SCRIPT_DIR"/move-file.sh
echo "===> Gradle Building Application <===" echo "===> Gradle Building Application <==="
bash gradlew build -x test bash gradlew bootJar
echo "===> Docker Building Image <===" echo "===> Docker Building Image <==="
docker build . -t "$ROOT_HUB" docker build . -t "$ROOT_HUB"

3
build-demo.sh Executable file
View File

@ -0,0 +1,3 @@
#!/usr/bin/env sh
bash apps/demo/build.sh