File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -122,15 +122,16 @@ steps:
122122 commands :
123123 - IMAGE_TAG=$([ ! -z $DRONE_TAG ] && echo ${DRONE_TAG:1} || echo \"canary\")
124124 - sed -i "s/imageTag:\ \"canary\"/imageTag:\ $IMAGE_TAG/g" charts/imagebuilder/values.yaml
125- - helm package charts/imagebuilder --version ${DRONE_TAG:-v1.0.0}
126- - curl -u $CHARTMUSEUM_USERNAME:$CHARTMUSEUM_PASSWORD -F chart=@imagebuilder-${DRONE_TAG:-v1.0.0}.tgz "$CHARTMUSEUM_API/api/$([ -z $DRONE_TAG ] && echo testing || echo stable)/charts"
125+ - helm package charts/imagebuilder --version $([ -z $DRONE_TAG ] && echo 1.0.0 || echo ${DRONE_TAG#v})
126+ - echo $CONTAINER_PASSWORD | helm registry login $DRYCC_REGISTRY -u $CONTAINER_USERNAME --password-stdin
127+ - helm push imagebuilder-$([ -z $DRONE_TAG ] && echo 1.0.0 || echo ${DRONE_TAG#v}).tgz oci://$DRYCC_REGISTRY/$([ -z $DRONE_TAG ] && echo charts-testing || echo charts)
127128 environment :
128- CHARTMUSEUM_USERNAME :
129- from_secret : chartmuseum_username
130- CHARTMUSEUM_PASSWORD :
131- from_secret : chartmuseum_password
132- CHARTMUSEUM_API :
133- from_secret : chartmuseum_api
129+ DRYCC_REGISTRY :
130+ from_secret : drycc_registry
131+ CONTAINER_USERNAME :
132+ from_secret : container_username
133+ CONTAINER_PASSWORD :
134+ from_secret : container_password
134135 when :
135136 event :
136137 - push
Original file line number Diff line number Diff line change 11name : imagebuilder
22home : https://github.com/drycc/imagebuilder
3+ apiVersion : v2
34version : v1.0.0
45description : Imagebuilder application builder for Drycc Workflow.
56maintainers :
You can’t perform that action at this time.
0 commit comments