Skip to content

Commit

Permalink
.github: move regcred secret out of e2e
Browse files Browse the repository at this point in the history
Signed-off-by: Vincent Demeester <[email protected]>
  • Loading branch information
vdemeester authored and openshift-merge-bot[bot] committed Dec 1, 2023
1 parent 574ee9c commit e4c60a4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
9 changes: 8 additions & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,4 +65,11 @@ jobs:

# running end-to-end test target
- name: test-e2e
run: make test-e2e
run: |
set -Eeuo pipefail
kubectl delete secret regcred || true
kubectl create secret generic regcred \
--from-file=.dockerconfigjson=$HOME/.docker/config.json \
--type=kubernetes.io/dockerconfigjson
kubectl patch serviceaccount default -p '{"imagePullSecrets": [{"name": "regcred"}]}'
make test-e2e
8 changes: 0 additions & 8 deletions test/e2e/e2e.bats
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,6 @@ source ./test/helper/helper.sh

run kubectl delete taskrun --all
assert_success

kubectl delete secret regcred || true
run kubectl create secret generic regcred \
--from-file=.dockerconfigjson=$HOME/.docker/config.json \
--type=kubernetes.io/dockerconfigjson
assert_success
run kubectl patch serviceaccount default -p '{"imagePullSecrets": [{"name": "regcred"}]}'
assert_success

run tkn task start git \
--param="URL=https://github.com/tektoncd/community.git" \
Expand Down

0 comments on commit e4c60a4

Please sign in to comment.