Skip to content

Commit dad050b

Browse files
author
Ian Walter
committed
Adding dangling dash fix to build name too
1 parent 53c6a89 commit dad050b

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

.changeset/nasty-eyes-hide.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@generates/kdot": patch
3+
---
4+
5+
Adding dangling dash fix to build name too

packages/kdot/lib/commands/build.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,9 @@ export default async function build (input) {
110110
// Create the pod configuration.
111111
const [firstTag] = app.image?.tags || []
112112
const tag = app.image?.tag || firstTag || 'latest'
113-
const name = (app.build.id || `build-${app.name}-${tag}`).substr(0, 63)
113+
const name = (app.build.id || `build-${app.name}-${tag}`)
114+
.substr(0, 63)
115+
.replace(/-$/, '')
114116
logger.debug('Build pod:', name)
115117
build.resources.push({
116118
app,

0 commit comments

Comments
 (0)