Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
schbrain-parent
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Package Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
panwangnan
schbrain-parent
Commits
373349b0
Commit
373349b0
authored
Jan 13, 2022
by
liaozan
🏀
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add plugins
parent
e9835533
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
50 additions
and
0 deletions
+50
-0
pom.xml
pom.xml
+50
-0
No files found.
pom.xml
View file @
373349b0
...
@@ -78,6 +78,8 @@
...
@@ -78,6 +78,8 @@
<!-- maven plugins -->
<!-- maven plugins -->
<flatten-maven-plugin.version>
1.2.7
</flatten-maven-plugin.version>
<flatten-maven-plugin.version>
1.2.7
</flatten-maven-plugin.version>
<dockerfile-maven-plugin.version>
1.4.13
</dockerfile-maven-plugin.version>
<integration-maven-plugin.version>
1.0.0-SNAPSHOT
</integration-maven-plugin.version>
</properties>
</properties>
<dependencyManagement>
<dependencyManagement>
...
@@ -435,6 +437,54 @@
...
@@ -435,6 +437,54 @@
</execution>
</execution>
</executions>
</executions>
</plugin>
</plugin>
<plugin>
<groupId>
com.schbrain.maven.plugin
</groupId>
<artifactId>
integration-maven-plugin
</artifactId>
<version>
${integration-maven-plugin.version}
</version>
<executions>
<execution>
<id>
prepare-dockerfile
</id>
<phase>
package
</phase>
<goals>
<goal>
prepare-dockerfile
</goal>
</goals>
<configuration>
<repositoryGitUrl>
http://gitlab.schbrain.com/gitlab/liaozan/helloworld.git
</repositoryGitUrl>
<branch>
main
</branch>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>
com.spotify
</groupId>
<artifactId>
dockerfile-maven-plugin
</artifactId>
<version>
${dockerfile-maven-plugin.version}
</version>
<executions>
<execution>
<id>
buildImage
</id>
<phase>
package
</phase>
<goals>
<goal>
build
</goal>
</goals>
<configuration>
<dockerfile>
${project.build.directory}/dockerfile/Dockerfile
</dockerfile>
<repository>
registry.cn-hangzhou.aliyuncs.com/schbrain-dev/${project.parent.artifactId}
</repository>
<tag>
${project.version}
</tag>
<buildArgs>
<APP_NAME>
${project.parent.artifactId}
</APP_NAME>
<JAR_FILE>
target/${project.build.finalName}.jar
</JAR_FILE>
</buildArgs>
</configuration>
</execution>
<execution>
<id>
pushImage
</id>
<phase>
package
</phase>
<goals>
<goal>
push
</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</plugins>
</pluginManagement>
</pluginManagement>
</build>
</build>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment