From ee4b69fbc7d467a187f96556ea1992867c0a82b1 Mon Sep 17 00:00:00 2001 From: wanggang <76527413@qq.com> Date: Wed, 2 Jun 2021 14:31:34 +0800 Subject: [PATCH] update --- .drone.yml | 23 +++++++++++------------ Dockerfile | 1 + 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/.drone.yml b/.drone.yml index 69a4f41..67e122e 100644 --- a/.drone.yml +++ b/.drone.yml @@ -15,16 +15,15 @@ steps: image: maven:3.6.3-openjdk-8 commands: - pwd - - mvnw clean package + - mvn clean package - pwd - - # - name: publish - # image: plugins/docker:19.03.8 - # environment: - # PLUGIN_REGISTRY: 192.168.100.144:5000 - # PLUGIN_REPO: 192.168.100.144:5000/node/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 + - name: publish + image: plugins/docker:19.03.8 + 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 diff --git a/Dockerfile b/Dockerfile index b22fd44..8d10519 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,5 @@ FROM openjdk:8-jdk-alpine3.9 +EXPOSE 8080 ARG JAR_FILE=target/*.jar COPY ${JAR_FILE} app.jar ENTRYPOINT ["java","-jar","/app.jar"] \ No newline at end of file