Skip to content
This repository was archived by the owner on Dec 11, 2023. It is now read-only.

Commit 5e21130

Browse files
committed
Handler custom paths update
1 parent c99a9cd commit 5e21130

File tree

6 files changed

+12
-12
lines changed

6 files changed

+12
-12
lines changed

go-1.x/runtime.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ spec:
3939
args:
4040
- -c
4141
- |
42-
cd /workspace/workspace
42+
cd /workspace/workspace/${inputs.params.DIRECTORY}
4343
cat <<EOF > Dockerfile
4444
FROM golang:alpine
4545
# Skip known public key check to be able to pull from private repositories
@@ -70,7 +70,7 @@ spec:
7070
- name: export
7171
image: gcr.io/kaniko-project/executor:debug-v0.8.0
7272
args:
73-
- --context=/workspace/workspace
73+
- --context=/workspace/workspace/${inputs.params.DIRECTORY}
7474
- --dockerfile=Dockerfile
7575
- --destination=${inputs.params.IMAGE}
7676
# Workaround not to use default config which requires gcloud credentials

node-10.x/runtime.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ spec:
3838
args:
3939
- -c
4040
- |
41-
cd /workspace/workspace
41+
cd /workspace/workspace/${inputs.params.DIRECTORY}
4242
cat <<EOF > Dockerfile
4343
FROM gcr.io/triggermesh/knative-lambda-node10
4444
ENV _HANDLER "${inputs.params.HANDLER}"
@@ -50,7 +50,7 @@ spec:
5050
- name: export
5151
image: gcr.io/kaniko-project/executor:debug-v0.8.0
5252
args:
53-
- --context=/workspace/workspace
53+
- --context=/workspace/workspace/${inputs.params.DIRECTORY}
5454
- --dockerfile=Dockerfile
5555
- --destination=${inputs.params.IMAGE}
5656
# Workaround not to use default config which requires gcloud credentials

node-4.x/runtime.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ spec:
3838
args:
3939
- -c
4040
- |
41-
cd /workspace/workspace
41+
cd /workspace/workspace/${inputs.params.DIRECTORY}
4242
cat <<EOF > Dockerfile
4343
FROM gcr.io/triggermesh/knative-lambda-node4
4444
ENV _HANDLER "${inputs.params.HANDLER}"
@@ -51,7 +51,7 @@ spec:
5151
image: gcr.io/kaniko-project/executor:debug-v0.8.0
5252
args:
5353
- --dockerfile=Dockerfile
54-
- --context=/workspace/workspace
54+
- --context=/workspace/workspace/${inputs.params.DIRECTORY}
5555
- --destination=${inputs.params.IMAGE}
5656
# Workaround not to use default config which requires gcloud credentials
5757
# to pull base image from public gcr registry

python-2.7/runtime.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ spec:
3838
args:
3939
- -c
4040
- |
41-
cd /workspace/workspace
41+
cd /workspace/workspace/${inputs.params.DIRECTORY}
4242
cat <<EOF > Dockerfile
4343
FROM gcr.io/triggermesh/knative-lambda-python27
4444
@@ -53,7 +53,7 @@ spec:
5353
image: gcr.io/kaniko-project/executor:debug-v0.8.0
5454
args:
5555
- --dockerfile=Dockerfile
56-
- --context=/workspace/workspace
56+
- --context=/workspace/workspace/${inputs.params.DIRECTORY}
5757
- --destination=${inputs.params.IMAGE}
5858
# Workaround not to use default config which requires gcloud credentials
5959
# to pull base image from public gcr registry

python-3.7/runtime.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ spec:
3838
args:
3939
- -c
4040
- |
41-
cd /workspace/workspace
41+
cd /workspace/workspace/${inputs.params.DIRECTORY}
4242
cat <<EOF > Dockerfile
4343
FROM gcr.io/triggermesh/knative-lambda-python37
4444
@@ -52,7 +52,7 @@ spec:
5252
- name: export
5353
image: gcr.io/kaniko-project/executor:debug-v0.8.0
5454
args:
55-
- --context=/workspace/workspace
55+
- --context=/workspace/workspace/${inputs.params.DIRECTORY}
5656
- --dockerfile=Dockerfile
5757
- --destination=${inputs.params.IMAGE}
5858
# Workaround not to use default config which requires gcloud credentials

ruby-2.5/runtime.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ spec:
3838
args:
3939
- -c
4040
- |
41-
cd /workspace/workspace
41+
cd /workspace/workspace/${inputs.params.DIRECTORY}
4242
cat <<EOF > Dockerfile
4343
FROM gcr.io/triggermesh/knative-lambda-ruby25
4444
ENV _HANDLER "${inputs.params.HANDLER}"
@@ -50,7 +50,7 @@ spec:
5050
image: gcr.io/kaniko-project/executor:debug-v0.8.0
5151
args:
5252
- --dockerfile=Dockerfile
53-
- --context=/workspace/workspace
53+
- --context=/workspace/workspace/${inputs.params.DIRECTORY}
5454
- --destination=${inputs.params.IMAGE}
5555
# Workaround not to use default config which requires gcloud credentials
5656
# to pull base image from public gcr registry

0 commit comments

Comments
 (0)