File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -125,15 +125,16 @@ steps:
125125 commands :
126126 - IMAGE_TAG=$([ ! -z $DRONE_TAG ] && echo \"${DRONE_TAG:1}\" || echo \"canary\")
127127 - sed -i "s/imageTag:\ \"canary\"/imageTag:\ $IMAGE_TAG/g" charts/passport/values.yaml
128- - helm package -u charts/passport --version ${DRONE_TAG:-v1.0.0}
129- - curl -u $CHARTMUSEUM_USERNAME:$CHARTMUSEUM_PASSWORD -F chart=@passport-${DRONE_TAG:-v1.0.0}.tgz "$CHARTMUSEUM_API/api/$([ -z $DRONE_TAG ] && echo testing || echo stable)/charts"
128+ - helm package -u charts/passport --version $([ -z $DRONE_TAG ] && echo 1.0.0 || echo ${DRONE_TAG#v})
129+ - echo $CONTAINER_PASSWORD | helm registry login $DRYCC_REGISTRY -u $CONTAINER_USERNAME --password-stdin
130+ - helm push passport-$([ -z $DRONE_TAG ] && echo 1.0.0 || echo ${DRONE_TAG#v}).tgz oci://$DRYCC_REGISTRY/$([ -z $DRONE_TAG ] && echo charts-testing || echo charts)
130131 environment :
131- CHARTMUSEUM_USERNAME :
132- from_secret : chartmuseum_username
133- CHARTMUSEUM_PASSWORD :
134- from_secret : chartmuseum_password
135- CHARTMUSEUM_API :
136- from_secret : chartmuseum_api
132+ DRYCC_REGISTRY :
133+ from_secret : drycc_registry
134+ CONTAINER_USERNAME :
135+ from_secret : container_username
136+ CONTAINER_PASSWORD :
137+ from_secret : container_password
137138 when :
138139 event :
139140 - push
Original file line number Diff line number Diff line change @@ -3,10 +3,10 @@ home: https://github.com/drycc/passport
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 : Drycc Workflow passport (API).
99maintainers :
1010 - name : Drycc Team
1111 email : engineering@drycc.com
12- version : v1.1 .0
12+ version : v1.0 .0
You can’t perform that action at this time.
0 commit comments