Skip to content

Commit e9c192c

Browse files
committed
#369 Add branch tag to Docker build
1 parent a24bf40 commit e9c192c

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

htmlSanityCheck-cli/build.gradle

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@ def dockerTags(Project project) {
4242
if (currentBranch == 'main') {
4343
// On the main branch we should have the latest major prepended with 'v' for GH actions
4444
result += [ 'v' + project.version.substring(0, 1) ]
45+
} else {
46+
String branchTag = currentBranch.replaceAll('/', '-')
47+
result += [branchTag]
4548
}
4649

4750
return result

0 commit comments

Comments
 (0)