File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -149,15 +149,16 @@ steps:
149149 commands :
150150 - IMAGE_TAG=$([ ! -z $DRONE_TAG ] && echo \"${DRONE_TAG:1}\" || echo \"canary\")
151151 - sed -i "s/imageTag:\ \"canary\"/imageTag:\ $IMAGE_TAG/g" charts/monitor/values.yaml
152- - helm package -u charts/monitor --version ${DRONE_TAG:-v1.0.0}
153- - curl -u $CHARTMUSEUM_USERNAME:$CHARTMUSEUM_PASSWORD -F chart=@monitor-${DRONE_TAG:-v1.0.0}.tgz "$CHARTMUSEUM_API/api/$([ -z $DRONE_TAG ] && echo testing || echo stable)/charts"
152+ - helm package -u charts/monitor --version $([ -z $DRONE_TAG ] && echo 1.0.0 || echo ${DRONE_TAG#v})
153+ - echo $CONTAINER_PASSWORD | helm registry login $DRYCC_REGISTRY -u $CONTAINER_USERNAME --password-stdin
154+ - helm push monitor-$([ -z $DRONE_TAG ] && echo 1.0.0 || echo ${DRONE_TAG#v}).tgz oci://$DRYCC_REGISTRY/$([ -z $DRONE_TAG ] && echo charts-testing || echo charts)
154155 environment :
155- CHARTMUSEUM_USERNAME :
156- from_secret : chartmuseum_username
157- CHARTMUSEUM_PASSWORD :
158- from_secret : chartmuseum_password
159- CHARTMUSEUM_API :
160- from_secret : chartmuseum_api
156+ DRYCC_REGISTRY :
157+ from_secret : drycc_registry
158+ CONTAINER_USERNAME :
159+ from_secret : container_username
160+ CONTAINER_PASSWORD :
161+ from_secret : container_password
161162 when :
162163 event :
163164 - push
Original file line number Diff line number Diff line change @@ -3,10 +3,10 @@ home: https://github.com/drycc/monitor
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 : Monitoring for Drycc Workflow.
99maintainers :
1010 - name : Drycc Team
1111 email : engineering@drycc.com
12- version : v1.1 .0
12+ version : 1.0 .0
You can’t perform that action at this time.
0 commit comments