This commit is contained in:
2020-02-18 18:37:40 +01:00
parent d261b0a667
commit 6e46df2f21
11 changed files with 155 additions and 9 deletions

View File

@@ -83,4 +83,4 @@ spec:
resources:
inputs:
- name: git-source
resource: git-source
resource: git-source

View File

@@ -16,14 +16,15 @@ spec:
- name: pathToContext
value: "."
- name: imageUrl-a
value: "beppeserver-a"
value: "gs://BUCKETNAME/server-a"
- name: imageTag-a
value: "beppeserver-a-tag"
value: "release"
- name: pathToContext-a
value: "./serverA"
- name: imageUrl-b
value: "beppeserver-b"
value: "gs://BUCKETNAME/server-b"
- name: imageTag-b
value: "beppeserver-b-tag"
value: "release"
- name: pathToContext-b
value: "./serverB"
value: "./serverB"

View File

@@ -9,4 +9,4 @@ spec:
- name: revision
value: master
- name: url
value: https://github.com/beppevanrolleghem/cicdTest
value: git://github.com/beppevanrolleghem/cicdTest

View File

@@ -27,4 +27,7 @@ spec:
args:
- "--dockerfile=dockerfile"
- "--destination=$(inputs.params.imageUrl):$(inputs.params.imageTag)"
- "--context=$(inputs.resources.git-source.path)/$(inputs.params.pathToContext)/"
- "--context=$(inputs.resources.git-source.path)/$(inputs.params.pathToContext)/"
volumeMounts:
- name: docker-config
mountPath: /kaniko/.docker/