mmmmmmmmmmm

This commit is contained in:
2020-03-23 13:49:01 +01:00
parent d3ed5a87af
commit 1f02603954
2 changed files with 3 additions and 29 deletions

View File

@@ -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)"

View File

@@ -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