github.com/redhat-appstudio/e2e-tests@v0.0.0-20230619105049-9a422b2094d7/pipelines/sync-hac-frontend-configs/tasks.yaml (about) 1 apiVersion: tekton.dev/v1beta1 2 kind: Task 3 metadata: 4 name: sync-frontend-configs 5 namespace: appstudio-qe 6 spec: 7 description: >- 8 This task updates redhat-appstudio-qe/frontend-configs with 9 content from internal gitlab repo insights-platform/frontend-configs. 10 steps: 11 - image: quay.io/devfile/base-developer-image:latest 12 name: sync-frontend-configs 13 script: > 14 #!/bin/bash 15 16 git -c http.sslVerify=false clone 17 https://gitlab.cee.redhat.com/insights-platform/frontend-configs.git 18 19 cd frontend-configs 20 21 git remote add redhat-appstudio-qe 22 https://github.com/redhat-appstudio-qe/frontend-configs.git 23 24 git push redhat-appstudio-qe main 25 26 --- 27 apiVersion: tekton.dev/v1beta1 28 kind: Task 29 metadata: 30 name: send-slack-message 31 namespace: appstudio-qe 32 spec: 33 description: >- 34 This tasks post a simple message to a slack channel. 35 36 This task uses chat.postMessage slack REST api to send the message. There 37 are multiple ways to send a message to slack. 38 params: 39 - description: secret name of the slack app access token (key is token) 40 name: token-secret 41 type: string 42 - description: channel id or channel name 43 name: channel 44 type: string 45 - description: plain text message 46 name: message 47 type: string 48 steps: 49 - env: 50 - name: TOKEN 51 valueFrom: 52 secretKeyRef: 53 key: token 54 name: $(params.token-secret) 55 image: >- 56 quay.io/devfile/base-developer-image:latest 57 name: post 58 resources: {} 59 script: > 60 #!/bin/sh 61 62 /usr/bin/curl -X POST -H 'Content-type: application/json' -H 63 'Authorization: Bearer '$TOKEN --data '{"channel":"$(params.channel)", 64 "text":"$(params.message)"}' https://slack.com/api/chat.postMessage