Skip to content

Commit 57e31f1

Browse files
committed
chore(registry): add registry push test
1 parent 162bdf6 commit 57e31f1

5 files changed

Lines changed: 25 additions & 2 deletions

File tree

charts/registry/templates/registry-deployment.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ spec:
7171
failureThreshold: 5
7272
ports:
7373
- containerPort: 5000
74+
name: http
7475
volumeMounts:
7576
- name: registry-storage
7677
mountPath: /var/lib/registry

charts/registry/templates/registry-service.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,9 @@ spec:
1313
clusterIP: None
1414
selector:
1515
app: drycc-registry
16+
ports:
17+
- name: http
18+
port: 5000
19+
targetPort: 5000
1620
sessionAffinity: ClientIP
1721
{{- end }}

contrib/ci/s3.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"identities": [{
3+
"name": "drycc",
4+
"credentials": [{
5+
"accessKey": "$DRYCC_STORAGE_ACCESSKEY",
6+
"secretKey": "$DRYCC_STORAGE_SECRETKEY"
7+
}],
8+
"actions": ["Admin", "Read", "List", "Tagging", "Write"]
9+
}]
10+
}

contrib/ci/start-s3.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/usr/bin/env bash
2+
eval "cat <<EOF >/etc/seaweedfs/s3.json
3+
$( cat /tmp/weed/s3.json )
4+
EOF
5+
" 2> /dev/null
6+
7+
weed server -dir=/data -s3 -s3.config=/etc/seaweedfs/s3.json

contrib/ci/test.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,5 +47,6 @@ echo -e "\\033[32m---> Waitting for ${REGISTRY_IP}:5000\\033[0m"
4747
wait-for-port --host="${REGISTRY_IP}" 5000
4848
echo -e "\\033[32m---> S3 service ${REGISTRY_IP}:5000 ready...\\033[0m"
4949
# check that the registry is still up
50-
podman logs "${JOB}"
51-
podman ps -q --no-trunc=true | grep "${JOB}"
50+
podman tag "$1" "${REGISTRY_IP}:5000/registry:canary"
51+
echo admin | podman login "${REGISTRY_IP}:5000" --tls-verify=false --username admin --password-stdin > /dev/null 2>&1
52+
podman push "${REGISTRY_IP}:5000/registry:canary" --tls-verify=false

0 commit comments

Comments
 (0)