Updated build scripts

main
Sambo Chea 3 months ago
parent 32c59a69f2
commit bc81cb0988
Signed by: sombochea
GPG Key ID: 3C7CF22A05D95490
  1. 4
      .drone.yml
  2. 2
      api/src/main/resources/application-demo.yml
  3. 2
      api/src/main/resources/application-dev.yml
  4. 2
      apps/demo/build.sh
  5. 3
      build-demo.sh

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

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

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

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