This is an automated email from the ASF dual-hosted git repository.

liujun pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/dubbo-initializer.git

commit d4c5db683a3d958a13ca5c888060da75762aa0d6
Author: Albumen Kevin <[email protected]>
AuthorDate: Fri Apr 14 17:22:19 2023 +0800

    Add deploy
---
 .github/workflows/build.yml   |  9 +++++++--
 Dockerfile                    | 23 +++++++++++++++++++++++
 initializer-generator/pom.xml | 19 -------------------
 3 files changed, 30 insertions(+), 21 deletions(-)

diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 414a735..4c6ce36 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -26,5 +26,10 @@ jobs:
       - name: "Build"
         run: |
           ./mvnw --batch-mode -e --no-transfer-progress --fail-fast package 
-Dmaven.test.skip
-
-      
+      - name: Build and push
+        uses: docker/build-push-action@v2
+        with:
+          push: false
+          file: Dockerfile
+          tags: apache/dubbo-initializer:dev
+          platforms: linux/amd64
diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 0000000..774282c
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,23 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#      http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+FROM openjdk:17
+
+COPY initializer-generator/target/initializer-generator-0.8.jar 
/app/initializer-generator.jar
+
+EXPOSE 7001
+
+ENTRYPOINT ["java", "-jar", "/app/initializer-generator.jar"]
diff --git a/initializer-generator/pom.xml b/initializer-generator/pom.xml
index e96a6e7..e3f7a28 100644
--- a/initializer-generator/pom.xml
+++ b/initializer-generator/pom.xml
@@ -139,25 +139,6 @@
                     </execution>
                 </executions>
             </plugin>
-            <!-- 解压fat jar到target/${project-name}目录 -->
-            <plugin>
-                <artifactId>maven-antrun-plugin</artifactId>
-                <executions>
-                    <execution>
-                        <phase>package</phase>
-                        <configuration>
-                            <tasks>
-                                <unzip
-                                        
src="${project.build.directory}/${project.build.finalName}.${project.packaging}"
-                                        
dest="${project.build.directory}/initializer"/>
-                            </tasks>
-                        </configuration>
-                        <goals>
-                            <goal>run</goal>
-                        </goals>
-                    </execution>
-                </executions>
-            </plugin>
 
             <plugin>
                 <artifactId>maven-resources-plugin</artifactId>

Reply via email to