Skip to content

Commit d1461bc

Browse files
committed
build(ci): use official goharbor Helm chart
1 parent 1053958 commit d1461bc

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

.github/workflows/ci-e2e.yaml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
3030
- name: Helm repos
3131
run: |
32-
helm repo add bitnami https://charts.bitnami.com/bitnami
32+
helm repo add goharbor https://helm.goharbor.io
3333
helm repo add sysdig https://charts.sysdig.com
3434
helm repo update
3535
@@ -40,17 +40,18 @@ jobs:
4040
run: |
4141
HARBOR_URL="https://${MINIKUBE_IP}:30003"
4242
43-
helm install harbor bitnami/harbor \
43+
helm install harbor goharbor/harbor \
4444
--namespace harbor \
4545
--create-namespace \
4646
--set trivy.enabled=false \
47-
--set service.type=NodePort \
48-
--set service.nodePorts.http=30002 \
49-
--set service.nodePorts.https=30003 \
47+
--set expose.type=nodePort \
48+
--set expose.nodePort.ports.http.port=30002 \
49+
--set expose.nodePort.ports.https.port=30003 \
50+
--set expose.tls.auto.commonName=${MINIKUBE_IP} \
5051
--set externalURL="${HARBOR_URL}"
5152
5253
HARBOR_USERNAME=admin
53-
HARBOR_PASSWORD=$(kubectl get secret -n harbor harbor-core-envvars -o jsonpath='{.data.HARBOR_ADMIN_PASSWORD}' | base64 -d)
54+
HARBOR_PASSWORD=$(kubectl get secret -n harbor harbor-core -o jsonpath='{.data.HARBOR_ADMIN_PASSWORD}' | base64 -d)
5455
echo "::add-mask::${HARBOR_PASSWORD}"
5556
5657
echo "url=${HARBOR_URL}" >> "$GITHUB_OUTPUT"

0 commit comments

Comments
 (0)