File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change @@ -3,8 +3,8 @@ home: https://github.com/drycc/registry
33apiVersion : v2
44dependencies :
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
88description : Docker registry for Drycc Workflow.
99maintainers :
1010 - name : Drycc Team
You can’t perform that action at this time.
0 commit comments