Skip to content

Commit

Permalink
chore: Update custom pipelines for new kaniko approach (#47)
Browse files Browse the repository at this point in the history
Related #47

Change-Id: I872c94bc62c9e317025e028276cd822cfcdc8250
  • Loading branch information
Mykola Serdiuk committed Oct 27, 2023
1 parent 77d7a8c commit 93cb5fd
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -190,9 +190,11 @@ spec:
- sonar
- dockerfile-lint
params:
- name: IMAGE
value: "$(tasks.init-values.results.DOCKER_REGISTRY_HOST)/review/$(tasks.init-values.results.TENANT_NAME):$(params.CODEBASE_NAME)-$(params.changeNumber)-$(params.patchsetNumber)"
- name: IMAGE_TAR
- name: codebase-name
value: "review/$(params.CODEBASE_NAME)"
- name: image-tag
value: "$(params.changeNumber)-$(params.patchsetNumber)"
- name: image-tar
value: "$(params.CODEBASE_NAME)-$(params.changeNumber)-$(params.patchsetNumber)"
workspaces:
- name: source
Expand Down Expand Up @@ -221,9 +223,9 @@ spec:
- name: CODEBASE_NAME
value: $(params.CODEBASE_NAME)
- name: E2E_IMAGE_REPOSITORY
value: "$(tasks.init-values.results.DOCKER_REGISTRY_HOST)/review/$(tasks.init-values.results.TENANT_NAME)"
value: "review/$(params.CODEBASE_NAME)"
- name: E2E_IMAGE_TAG
value: "$(params.CODEBASE_NAME)-$(params.changeNumber)-$(params.patchsetNumber)"
value: "$(params.changeNumber)-$(params.patchsetNumber)"
workspaces:
- name: source
workspace: shared-workspace
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -187,12 +187,12 @@ spec:

- name: kaniko-build
params:
- name: IMAGE
value: >-
$(tasks.init-values.results.DOCKER_REGISTRY_HOST)/review/$(tasks.init-values.results.TENANT_NAME):$(params.CODEBASE_NAME)-$(params.changeNumber)-$(params.patchsetNumber)
- name: IMAGE_TAR
value: >-
$(params.CODEBASE_NAME)-$(params.changeNumber)-$(params.patchsetNumber)
- name: codebase-name
value: "review/$(params.CODEBASE_NAME)"
- name: image-tag
value: "$(params.changeNumber)-$(params.patchsetNumber)"
- name: image-tar
value: "$(params.CODEBASE_NAME)-$(params.changeNumber)-$(params.patchsetNumber)"
runAfter:
- sonar
- dockerfile-lint
Expand Down Expand Up @@ -226,9 +226,9 @@ spec:
- name: CODEBASE_NAME
value: $(params.CODEBASE_NAME)
- name: E2E_IMAGE_REPOSITORY
value: "$(tasks.init-values.results.DOCKER_REGISTRY_HOST)/review/$(tasks.init-values.results.TENANT_NAME)"
value: "review/$(params.CODEBASE_NAME)"
- name: E2E_IMAGE_TAG
value: "$(params.CODEBASE_NAME)-$(params.changeNumber)-$(params.patchsetNumber)"
value: "$(params.changeNumber)-$(params.patchsetNumber)"
workspaces:
- name: source
workspace: shared-workspace
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,11 +97,11 @@ spec:
- fetch-repository
params:
- name: codebase-name
value: "$(params.CODEBASE_NAME)"
value: "$(params.codebase-name)"
- name: image-tag
value: "$(tasks.get-version.results.IS_TAG)"
value: "$(params.version)"
- name: image-tar
value: "$(params.CODEBASE_NAME)_$(tasks.get-version.results.IS_TAG)"
value: "$(params.codebase-name)_$(params.version)"
workspaces:
- name: source
workspace: shared-workspace
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -143,11 +143,11 @@ spec:
- build
params:
- name: codebase-name
value: "$(params.CODEBASE_NAME)"
value: "$(params.codebase-name)"
- name: image-tag
value: "$(tasks.get-version.results.IS_TAG)"
value: "$(params.version)"
- name: image-tar
value: "$(params.CODEBASE_NAME)_$(tasks.get-version.results.IS_TAG)"
value: "$(params.codebase-name)_$(params.version)"
workspaces:
- name: source
workspace: shared-workspace
Expand Down
10 changes: 10 additions & 0 deletions charts/custom-pipelines/templates/tasks/e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,16 @@ spec:
value: $(params.E2E_IMAGE_TAG)
- name: E2E_HOST_NS
value: $(params.E2E_HOST_NS)
- name: CONTAINER_REGISTRY_URL
valueFrom:
configMapKeyRef:
name: edp-config
key: container_registry_host
- name: CONTAINER_REGISTRY_SPACE
valueFrom:
configMapKeyRef:
name: edp-config
key: container_registry_space
script: |
set -x
Expand Down

0 comments on commit 93cb5fd

Please sign in to comment.