Skip to content

Commit 9528f6f

Browse files
committed
feat(registry): switch charts to oci
1 parent ee19d16 commit 9528f6f

2 files changed

Lines changed: 11 additions & 10 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/registry/values.yaml
126-
- helm package -u charts/registry --version ${DRONE_TAG:-v1.0.0}
127-
- curl -u $CHARTMUSEUM_USERNAME:$CHARTMUSEUM_PASSWORD -F chart=@registry-${DRONE_TAG:-v1.0.0}.tgz "$CHARTMUSEUM_API/api/$([ -z $DRONE_TAG ] && echo testing || echo stable)/charts"
126+
- helm package -u charts/registry --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 registry-$([ -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/registry/Chart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ home: https://github.com/drycc/registry
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: Docker registry for Drycc Workflow.
99
maintainers:
1010
- name: Drycc Team

0 commit comments

Comments
 (0)