Skip to content

Commit

Permalink
SONAR-21478 Fix the secret retrieval for DockerHub authentication
Browse files Browse the repository at this point in the history
  • Loading branch information
carminevassallo committed Jan 19, 2024
1 parent 78f941a commit 0a77038
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 19 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
13 changes: 0 additions & 13 deletions .cirrus/docker_hub_test_pull_secret.yaml

This file was deleted.

0 comments on commit 0a77038

Please sign in to comment.