mirror of
https://github.com/bvanroll/stage-infra.git
synced 2025-08-28 19:42:43 +00:00
mmmmmmmmmmm
This commit is contained in:
@@ -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)"
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user