From 1f02603954f05d0c0ca795521324d3629464f6d0 Mon Sep 17 00:00:00 2001 From: Beppe Vanrolleghem Date: Mon, 23 Mar 2020 13:49:01 +0100 Subject: [PATCH] mmmmmmmmmmm --- Tekton/pipeline/application-pipeline.yaml | 28 +---------------------- Tekton/tasks/build-and-push.yaml | 4 ++-- 2 files changed, 3 insertions(+), 29 deletions(-) diff --git a/Tekton/pipeline/application-pipeline.yaml b/Tekton/pipeline/application-pipeline.yaml index 3f4836c..008db81 100644 --- a/Tekton/pipeline/application-pipeline.yaml +++ b/Tekton/pipeline/application-pipeline.yaml @@ -89,15 +89,6 @@ spec: name: deploy-yaml-file runAfter: - build-and-push - conditions: - - - conditionRef: is-not-equal - params: - - name: left - value: "failure" - - name: right - value: "$(tasks.build-and-push.results.state)" - workspaces: - name: source workspace: workspace @@ -106,21 +97,4 @@ spec: value: "$(params.git-repo-name)" - name: deploy-version value: "$(params.branch)" - - - - name: set-status-finished - taskRef: - name: github-set-status - runAfter: - - deploy-app - params: - - name: REPO_FULL_NAME - value: $(params.git-repo-full-name) - - name: SHA - value: $(params.revision) - - name: STATE - value: "$(tasks.deploy-app.results.state)" - - name: TARGET_URL - value: http://tekton.llocal.host/$(params.git-repo-name) - - name: DESCRIPTION - value: "$(tasks.deploy-app.results.description)" \ No newline at end of file + \ No newline at end of file diff --git a/Tekton/tasks/build-and-push.yaml b/Tekton/tasks/build-and-push.yaml index c45a8a6..b0da44a 100644 --- a/Tekton/tasks/build-and-push.yaml +++ b/Tekton/tasks/build-and-push.yaml @@ -39,8 +39,8 @@ spec: echo "test" /kaniko/executor --dockerfile=/source/$(params.context)/dockerfile --destination=beppev/$(params.image-name):$(params.version) --context=/source/$(params.context)/ --skip-tls-verify --skip-tls-verify-pull if [ "$?" = 0 ]; then - printf "pending" > /tekton/results/state - printf "build and push successful" > /tekton/results/description + printf "success" > /tekton/results/state + printf "build and push successful, going on to publish build" > /tekton/results/description else printf "failure" > /tekton/results/state printf "build and push were not successful use kubectl or tkn or tekton dashboard to see logs" > /tekton/results/description