Skip to content

Commit

Permalink
Edit secret creation in cirrus
Browse files Browse the repository at this point in the history
  • Loading branch information
carminevassallo committed Jan 19, 2024
1 parent 78f941a commit fa5c398
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions .cirrus.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -85,13 +85,10 @@ chart_testing_task:
- export DOCKER_HOST=tcp://localhost:2375
- ./.cirrus/wait_for_kind.sh
script:
- helm repo add clustersecret https://charts.clustersecret.io/
- helm install clustersecret clustersecret/cluster-secret -n clustersecret --create-namespace
- DOCKER_CONFIG=$(kubectl create secret docker-registry unused --docker-username=${DOCKER_USERNAME} --docker-password=${DOCKER_PASSWORD} --dry-run -o json | jq '.data.".dockerconfigjson"')
- sed -i "s|DOCKER_CONFIG_JSON|${DOCKER_CONFIG}|g" .cirrus/docker_hub_test_pull_secret.yaml
- kubectl apply -f .cirrus/docker_hub_test_pull_secret.yaml
- kubectl create namespace test
- kubectl create secret docker-registry pullsecret --namespace test --docker-username=${DOCKER_USERNAME} --docker-password=${DOCKER_PASSWORD}
- ct lint --config test.yaml --all
- ct install --config test.yaml --all
- ct install --namespace test --config test.yaml --all
artifacthub_lint_script:
- ah lint
depends_on:
Expand Down

0 comments on commit fa5c398

Please sign in to comment.