File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -126,15 +126,16 @@ steps:
126126 commands :
127127 - IMAGE_TAG=$([ ! -z $DRONE_TAG ] && echo \"${DRONE_TAG:1}\" || echo \"canary\")
128128 - sed -i "s/imageTag:\ \"canary\"/imageTag:\ $IMAGE_TAG/g" charts/database/values.yaml
129- - helm package -u charts/database --version ${DRONE_TAG:-v1.0.0}
130- - curl -u $CHARTMUSEUM_USERNAME:$CHARTMUSEUM_PASSWORD -F chart=@database-${DRONE_TAG:-v1.0.0}.tgz "$CHARTMUSEUM_API/api/$([ -z $DRONE_TAG ] && echo testing || echo stable)/charts"
129+ - helm package -u charts/database --version $([ -z $DRONE_TAG ] && echo 1.0.0 || echo ${DRONE_TAG#v})
130+ - echo $CONTAINER_PASSWORD | helm registry login $DRYCC_REGISTRY -u $CONTAINER_USERNAME --password-stdin
131+ - helm push database-$([ -z $DRONE_TAG ] && echo 1.0.0 || echo ${DRONE_TAG#v}).tgz oci://$DRYCC_REGISTRY/$([ -z $DRONE_TAG ] && echo charts-testing || echo charts)
131132 environment :
132- CHARTMUSEUM_USERNAME :
133- from_secret : chartmuseum_username
134- CHARTMUSEUM_PASSWORD :
135- from_secret : chartmuseum_password
136- CHARTMUSEUM_API :
137- from_secret : chartmuseum_api
133+ DRYCC_REGISTRY :
134+ from_secret : drycc_registry
135+ CONTAINER_USERNAME :
136+ from_secret : container_username
137+ CONTAINER_PASSWORD :
138+ from_secret : container_password
138139 when :
139140 event :
140141 - push
Original file line number Diff line number Diff line change @@ -2,8 +2,8 @@ name: database
22apiVersion : v2
33dependencies :
44 - name : common
5- repository : https ://charts .drycc.cc/stable
6- version : 1.x.x
5+ repository : oci ://registry .drycc.cc/charts
6+ version : ~1.1.1
77home : https://github.com/drycc/postgres
88version : v1.1.0
99description : A PostgreSQL database used by Drycc Workflow.
You can’t perform that action at this time.
0 commit comments