Skip to content

Commit

Permalink
tmp
Browse files Browse the repository at this point in the history
Signed-off-by: Adam Cmiel <[email protected]>
  • Loading branch information
chmeliik committed Jun 4, 2024
1 parent 185befb commit c8f2f37
Showing 1 changed file with 66 additions and 66 deletions.
132 changes: 66 additions & 66 deletions .tekton/pull-request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -72,56 +72,56 @@ spec:
workspaces:
- name: source
workspace: workspace
- name: check-partner-tasks
runAfter:
- build-container
taskSpec:
steps:
- name: check-task-structure
image: quay.io/konflux-ci/pull-request-builds:appstudio-utils-{{revision}}
workingDir: $(workspaces.source.path)/source
script: |
#!/usr/bin/env bash
./hack/check-partner-tasks.sh > partner-tasks.out
echo $? > partner-tasks-code.out
cat partner-tasks.out
- name: create-comment
image: quay.io/redhat-appstudio/github-app-token@sha256:b4f2af12e9beea68055995ccdbdb86cfe1be97688c618117e5da2243dc1da18e
volumeMounts:
- name: infra-deployments-pr-creator
mountPath: /secrets/deploy-key
workingDir: $(workspaces.source.path)/source
env:
- name: GITHUBAPP_KEY_PATH
value: /secrets/deploy-key/private-key
- name: GITHUBAPP_APP_ID
value: "305606"
- name: GITHUBAPP_INSTALLATION_ID
value: "35269675"
- name: GITHUB_API_URL
value: https://api.github.com
- name: REPO_OWNER
value: "{{repo_owner}}"
- name: REPO_NAME
value: "{{repo_name}}"
- name: PULL_REQUEST_NUMBER
value: "{{pull_request_number}}"
script: |
#!/usr/bin/env bash
exit_code=$(cat partner-tasks-code.out)
if [ $exit_code != "0" ]; then
.tekton/scripts/github-update-comment.py partner-tasks.out
fi
exit $exit_code
workspaces:
- name: source
volumes:
- name: infra-deployments-pr-creator
secret:
secretName: infra-deployments-pr-creator
workspaces:
- name: source
workspace: workspace
#- name: check-partner-tasks
# runAfter:
# - build-container
# taskSpec:
# steps:
# - name: check-task-structure
# image: quay.io/konflux-ci/pull-request-builds:appstudio-utils-{{revision}}
# workingDir: $(workspaces.source.path)/source
# script: |
# #!/usr/bin/env bash
# ./hack/check-partner-tasks.sh > partner-tasks.out
# echo $? > partner-tasks-code.out
# cat partner-tasks.out
# - name: create-comment
# image: quay.io/redhat-appstudio/github-app-token@sha256:b4f2af12e9beea68055995ccdbdb86cfe1be97688c618117e5da2243dc1da18e
# volumeMounts:
# - name: infra-deployments-pr-creator
# mountPath: /secrets/deploy-key
# workingDir: $(workspaces.source.path)/source
# env:
# - name: GITHUBAPP_KEY_PATH
# value: /secrets/deploy-key/private-key
# - name: GITHUBAPP_APP_ID
# value: "305606"
# - name: GITHUBAPP_INSTALLATION_ID
# value: "35269675"
# - name: GITHUB_API_URL
# value: https://api.github.com
# - name: REPO_OWNER
# value: "{{repo_owner}}"
# - name: REPO_NAME
# value: "{{repo_name}}"
# - name: PULL_REQUEST_NUMBER
# value: "{{pull_request_number}}"
# script: |
# #!/usr/bin/env bash
# exit_code=$(cat partner-tasks-code.out)
# if [ $exit_code != "0" ]; then
# .tekton/scripts/github-update-comment.py partner-tasks.out
# fi
# exit $exit_code
# workspaces:
# - name: source
# volumes:
# - name: infra-deployments-pr-creator
# secret:
# secretName: infra-deployments-pr-creator
# workspaces:
# - name: source
# workspace: workspace
- name: build-bundles
params:
- name: revision
Expand Down Expand Up @@ -154,22 +154,22 @@ spec:
hack/build-and-push.sh
workspaces:
- name: source
- name: e2e-tests
params:
- name: e2e_test_namespace
value: $(params.e2e_test_namespace)
- name: app_suffix
value: "ref-{{ revision }}"
- name: ec_pipelines_repo_url
value: "{{ source_url }}"
- name: ec_pipelines_repo_revision
value: "{{ revision }}"
runAfter:
- build-bundles
taskRef:
name: e2e-test
# Added a timeout due to https://issues.redhat.com/browse/STONEBLD-2265
timeout: "2h"
# - name: e2e-tests
# params:
# - name: e2e_test_namespace
# value: $(params.e2e_test_namespace)
# - name: app_suffix
# value: "ref-{{ revision }}"
# - name: ec_pipelines_repo_url
# value: "{{ source_url }}"
# - name: ec_pipelines_repo_revision
# value: "{{ revision }}"
# runAfter:
# - build-bundles
# taskRef:
# name: e2e-test
# # Added a timeout due to https://issues.redhat.com/browse/STONEBLD-2265
# timeout: "2h"
- name: check-task-pipeline-repo-existence
runAfter:
- build-bundles
Expand Down

0 comments on commit c8f2f37

Please sign in to comment.