Skip to content

Commit 3e23189

Browse files
committed
feat(redis): switch charts to oci
1 parent 821d04f commit 3e23189

2 files changed

Lines changed: 12 additions & 11 deletions

File tree

.drone/drone.yml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -123,15 +123,16 @@ steps:
123123
commands:
124124
- IMAGE_TAG=$([ ! -z $DRONE_TAG ] && echo \"${DRONE_TAG:1}\" || echo \"canary\")
125125
- sed -i "s/imageTag:\ \"canary\"/imageTag:\ $IMAGE_TAG/g" charts/redis/values.yaml
126-
- helm package -u charts/redis --version ${DRONE_TAG:-v1.0.0}
127-
- curl -u $CHARTMUSEUM_USERNAME:$CHARTMUSEUM_PASSWORD -F chart=@redis-${DRONE_TAG:-v1.0.0}.tgz "$CHARTMUSEUM_API/api/$([ -z $DRONE_TAG ] && echo testing || echo stable)/charts"
126+
- helm package -u charts/redis --version $([ -z $DRONE_TAG ] && echo 1.0.0 || echo ${DRONE_TAG#v})
127+
- echo $CONTAINER_PASSWORD | helm registry login $DRYCC_REGISTRY -u $CONTAINER_USERNAME --password-stdin
128+
- helm push redis-$([ -z $DRONE_TAG ] && echo 1.0.0 || echo ${DRONE_TAG#v}).tgz oci://$DRYCC_REGISTRY/$([ -z $DRONE_TAG ] && echo charts-testing || echo charts)
128129
environment:
129-
CHARTMUSEUM_USERNAME:
130-
from_secret: chartmuseum_username
131-
CHARTMUSEUM_PASSWORD:
132-
from_secret: chartmuseum_password
133-
CHARTMUSEUM_API:
134-
from_secret: chartmuseum_api
130+
DRYCC_REGISTRY:
131+
from_secret: drycc_registry
132+
CONTAINER_USERNAME:
133+
from_secret: container_username
134+
CONTAINER_PASSWORD:
135+
from_secret: container_password
135136
when:
136137
event:
137138
- push

charts/redis/Chart.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ home: https://github.com/drycc/redis
33
apiVersion: v2
44
dependencies:
55
- name: common
6-
repository: https://charts.drycc.cc/stable
7-
version: 1.x.x
6+
repository: oci://registry.drycc.cc/charts
7+
version: ~1.1.1
88
description: A Redis database for use inside a Kubernetes cluster.
99
maintainers:
1010
- name: Drycc Team
1111
email: engineering@drycc.com
12-
version: v1.1.0
12+
version: v1.0.0

0 commit comments

Comments
 (0)