Skip to content
This repository was archived by the owner on Jul 18, 2025. It is now read-only.

Commit 2e4b6d8

Browse files
committed
Use const for base invocation image name
Signed-off-by: Christopher Crone <[email protected]>
1 parent baf0b24 commit 2e4b6d8

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

internal/packager/packing.go

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,15 @@ import (
1414
"github.com/pkg/errors"
1515
)
1616

17-
var dockerFile = `FROM docker/cnab-app-base:` + internal.Version + `
18-
COPY . .`
17+
const (
18+
// CNABBaseImageName is the name of the base invocation image.
19+
CNABBaseImageName = "docker/cnab-app-base"
20+
21+
dockerIgnore = "Dockerfile"
22+
)
1923

20-
const dockerIgnore = "Dockerfile"
24+
var dockerFile = `FROM ` + CNABBaseImageName + `:` + internal.Version + `
25+
COPY . .`
2126

2227
func tarAdd(tarout *tar.Writer, path, file string) error {
2328
payload, err := ioutil.ReadFile(file)

0 commit comments

Comments
 (0)