Skip to content

Commit

Permalink
Merge pull request fabric8io#191 from kyleprager/forceTags-updated-re…
Browse files Browse the repository at this point in the history
…adme

added documentation to README.md for "forceTags" option.  Related to …
  • Loading branch information
davidxia committed Mar 17, 2016
2 parents 36fdd4f + 2fa61f6 commit 2f12879
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,25 @@ In order for this to succeed, at least one imageTag must be present in the confi
</plugins>
</build>

Optionally, you can force docker to overwrite your image tags on each new build:

<build>
<plugins>
...
<plugin>
<configuration>
...
<!-- optionally overwrite tags every time image is built with docker:build -->
<forceTags>true</forceTags>
<imageTags>
...
</imageTags>
</configuration>
</plugin>
...
</plugins>
</build>

Tags-to-be-pushed can also be specified directly on the command line with

mvn ... docker:build -DpushImageTags -DdockerImageTag=latest -DdockerImageTag=another-tag
Expand Down

0 comments on commit 2f12879

Please sign in to comment.