Skip to content

Commit

Permalink
e2e config
Browse files Browse the repository at this point in the history
  • Loading branch information
sm43 committed Sep 22, 2023
1 parent 73316e0 commit 463efd9
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 2 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/e2e-config.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
application-name: "Pipelines as Code CI"
secret-auto-create: "true"
secret-github-app-token-scoped: "true"
secret-github-app-scope-extra-repos: ""
hub-url: "https://api.hub.tekton.dev/v1"
hub-catalog-name: "tekton"
remote-tasks: "true"
tekton-dashboard-url: ""
error-log-snippet: "true"
error-detection-from-container-logs: "true"
error-detection-max-number-of-lines: "50"
error-detection-simple-regexp: |
^(?P<filename>[^:]*):(?P<line>[0-9]+):(?P<column>[0-9]+)?([ ]*)?(?P<error>.*)
bitbucket-cloud-check-source-ip: "false"
bitbucket-cloud-additional-source-ip: ""
max-keep-run-upper-limit: ""
default-max-keep-runs: ""
auto-configure-new-github-repo: "false"
auto-configure-repo-namespace-template: ""
remember-ok-to-test: "true"
12 changes: 10 additions & 2 deletions .github/workflows/kind-e2e-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,12 @@ jobs:
export PAC_DIR=${PWD}
export TEST_GITEA_SMEEURL="${{ secrets.TEST_GITEA_SMEEURL }}"
bash -x ./hack/dev/kind/install.sh
- name: Extract Configurations
id: config
run: |
value=$(cat e2e-config.txt)
echo "::set-output name=value::$value"
- name: Create PAC github-app-secret
run: |
Expand All @@ -66,8 +72,10 @@ jobs:
--from-literal github-application-id=${{ secrets.APPLICATION_ID }} \
--from-literal webhook.secret=${{ secrets.WEBHOOK_SECRET }}
# Disable Bitbucket Cloud Source IP check, since we should be god here.
kubectl patch configmap -n pipelines-as-code -p "{\"data\":{\"bitbucket-cloud-check-source-ip\": \"false\"}}" \
--type merge pipelines-as-code
# kubectl patch configmap -n pipelines-as-code -p "{\"data\":{\"bitbucket-cloud-check-source-ip\": \"false\"}}" \
# --type merge pipelines-as-code
kubectl patch configmap pipelines-as-code -n pipelines-as-code --type='json' \
-p='[{"op": "replace", "path": "/data/config.yaml", "'"${{ steps.config.outputs.value }}"'"}]'
# restart controller
kubectl -n pipelines-as-code delete pod -l app.kubernetes.io/name=controller
Expand Down

0 comments on commit 463efd9

Please sign in to comment.