From 7cadc3b16f79b0c9e82d4ffedca6341e5b8eb7fb Mon Sep 17 00:00:00 2001 From: wanggang <76527413@qq.com> Date: Wed, 2 Jun 2021 14:57:16 +0800 Subject: [PATCH] update --- .drone.yml | 11 +++++++---- README.md | 2 ++ 2 files changed, 9 insertions(+), 4 deletions(-) create mode 100644 README.md diff --git a/.drone.yml b/.drone.yml index 8f452f7..93f731b 100644 --- a/.drone.yml +++ b/.drone.yml @@ -7,23 +7,26 @@ platform: steps: - name: test image: maven:3.6.3-openjdk-8 + environment: + M2_HOME: /drone/src/.m2 commands: - java -version - mvn -v - mvn test - name: build image: maven:3.6.3-openjdk-8 + environment: + M2_HOME: /drone/src/.m2 commands: - mvn clean package - - pwd - - ls + - ls target - name: publish image: plugins/docker:19.03.8 - environment: + environment: PLUGIN_REGISTRY: 10.10.14.176:5000 PLUGIN_REPO: 10.10.14.176:5000/java/example settings: insecure: true tags: - latest - - ${DRONE_STAGE_OS}-${DRONE_STAGE_ARCH}-${DRONE_REPO_BRANCH}-${DRONE_COMMIT_SHA:0:8} \ No newline at end of file + - ${DRONE_STAGE_OS}-${DRONE_STAGE_ARCH}-${DRONE_REPO_BRANCH}-${DRONE_COMMIT_SHA:0:8} diff --git a/README.md b/README.md new file mode 100644 index 0000000..c5de5bb --- /dev/null +++ b/README.md @@ -0,0 +1,2 @@ +docker run -p 8080:8080 10.10.14.176:5000/java/example:latest +http://localhost:8080/greeting \ No newline at end of file