Skip to content

Commit 5e6e1ca

Browse files
committed
feat(release): add latest automatically
1 parent 7124155 commit 5e6e1ca

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

release.config.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,15 +46,19 @@ module.exports = {
4646
path: "@semantic-release/exec",
4747
cmd: `docker tag fossapps/micro.starter:\`git rev-parse --short=4 ${process.env.TRAVIS_COMMIT}\` fossapps/micro.starter:\${nextRelease.version}`
4848
}
49+
{
50+
path: "@semantic-release/exec",
51+
cmd: `docker tag fossapps/micro.starter:\`git rev-parse --short=4 ${process.env.TRAVIS_COMMIT}\` fossapps/micro.starter:latest`
52+
}
4953
],
5054
publish: [
5155
{
5256
path: "@semantic-release/exec",
53-
cmd: "docker push fossapps/micro.starter"
57+
cmd: "docker push fossapps/micro.starter:${nextRelease.version}"
5458
},
5559
{
5660
path: "@semantic-release/exec",
57-
cmd: "docker push fossapps/micro.starter:${nextRelease.version}"
61+
cmd: "docker push fossapps/micro.starter:latest"
5862
},
5963
"@semantic-release/github"
6064
]

0 commit comments

Comments
 (0)