Skip to content

Commit

Permalink
More granular image references (#868)
Browse files Browse the repository at this point in the history
Signed-off-by: Matej Vašek <matejvasek@gmail.com>
  • Loading branch information
matejvasek authored Sep 6, 2024
1 parent a57e9d9 commit 2248efe
Showing 1 changed file with 20 additions and 3 deletions.
23 changes: 20 additions & 3 deletions pkg/pipelines/tekton/tasks.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,24 @@ import (
"strings"
)

var DeployerImage = "ghcr.io/knative/func-utils:latest"
var (
FuncUtilImage = "ghcr.io/knative/func-utils:latest"
DeployerImage string
ScaffoldImage string
S2IImage string
)

func init() {
if DeployerImage == "" {
DeployerImage = FuncUtilImage
}
if ScaffoldImage == "" {
ScaffoldImage = FuncUtilImage
}
if S2IImage == "" {
S2IImage = FuncUtilImage
}
}

func getBuildpackTask() string {
return `apiVersion: tekton.dev/v1
Expand Down Expand Up @@ -377,7 +394,7 @@ spec:
name: gen-source
- emptyDir: {}
name: env-vars
`, DeployerImage)
`, S2IImage)
}

func getDeployTask() string {
Expand Down Expand Up @@ -435,7 +452,7 @@ spec:
image: %s
script: |
scaffold $(params.path)
`, DeployerImage)
`, ScaffoldImage)
}

// GetClusterTasks returns multi-document yaml containing tekton tasks used by func.
Expand Down

0 comments on commit 2248efe

Please sign in to comment.