Commit 3ca932b6 authored by terrymanu's avatar terrymanu
Browse files

update sharding-proxy's distribution profile

parent 0e2b0ed6
Loading
Loading
Loading
Loading
+0 −4
Original line number Diff line number Diff line
@@ -34,8 +34,4 @@
        <module>sharding-proxy-backend</module>
        <module>sharding-proxy-bootstrap</module>
    </modules>
    
    <properties>
        <maven.deploy.skip>false</maven.deploy.skip>
    </properties>
</project>
+28 −18
Original line number Diff line number Diff line
@@ -96,6 +96,29 @@
        </dependency>
    </dependencies>
    
    <build>
        <plugins>
            <plugin>
                <groupId>com.spotify</groupId>
                <artifactId>docker-maven-plugin</artifactId>
                <configuration>
                    <imageName>shardingsphere/sharding-proxy:4.0.0-RC1</imageName>
                    <dockerDirectory>${project.basedir}/src/main/docker</dockerDirectory>
                    <resources>
                        <resource>
                            <targetPath>/</targetPath>
                            <directory>${project.build.directory}</directory>
                            <include>${project.build.finalName}.tar.gz</include>
                        </resource>
                    </resources>
                </configuration>
            </plugin>
        </plugins>
    </build>
    
    <profiles>
        <profile>
            <id>release</id>
            <build>
                <plugins>
                    <plugin>
@@ -108,7 +131,7 @@
                        </configuration>
                        <executions>
                            <execution>
                        <id>assembly</id>
                                <id>sharding-proxy</id>
                                <phase>package</phase>
                                <goals>
                                    <goal>single</goal>
@@ -116,21 +139,8 @@
                            </execution>
                        </executions>
                    </plugin>
            <plugin>
                <groupId>com.spotify</groupId>
                <artifactId>docker-maven-plugin</artifactId>
                <configuration>
                    <imageName>shardingsphere/sharding-proxy:4.0.0-RC1</imageName>
                    <dockerDirectory>${project.basedir}/src/main/docker</dockerDirectory>
                    <resources>
                        <resource>
                            <targetPath>/</targetPath>
                            <directory>${project.build.directory}</directory>
                            <include>${project.build.finalName}.tar.gz</include>
                        </resource>
                    </resources>
                </configuration>
            </plugin>
                </plugins>
            </build>
        </profile>
    </profiles>
</project>
+1 −1
Original line number Diff line number Diff line
@@ -17,7 +17,7 @@

<assembly xmlns="http://maven.apache.org/ASSEMBLY/2.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://maven.apache.org/ASSEMBLY/2.0.0 http://maven.apache.org/xsd/assembly-2.0.0.xsd">
    <id>assembly</id>
    <id>sharding-proxy</id>
    <formats>
        <format>tar.gz</format>
    </formats>