1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
| <properties>
<docker.registry.url>registry.cn-hangzhou.aliyuncs.com</docker.registry.url> <docker.username>*****</docker.username> <docker.password>*****</docker.password> <docker.namespace>pandev</docker.namespace> <docker.plugin.version>1.4.13</docker.plugin.version>
</properties>
<plugin> <groupId>io.fabric8</groupId> <artifactId>docker-maven-plugin</artifactId> <version>${docker.fabric.version}</version> <configuration> <skip>true</skip> <authConfig> <username>${docker.username}</username> <password>${docker.password}</password> </authConfig> <registry>${docker.registry.url}</registry> <images> <image> <name>${docker.namespace}/${project.build.finalName}:${project.version}</name> <alias>${project.name}</alias> <build> <dockerFile>${project.basedir}/Dockerfile</dockerFile> </build> </image> </images> </configuration> </plugin>
|