Skip to content

Commit 750ef97

Browse files
committed
feat(builder): switch charts to oci
1 parent 28f83ba commit 750ef97

2 files changed

Lines changed: 11 additions & 10 deletions

File tree

.drone/drone.yml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -136,15 +136,16 @@ steps:
136136
commands:
137137
- IMAGE_TAG=$([ ! -z $DRONE_TAG ] && echo \"${DRONE_TAG:1}\" || echo \"canary\")
138138
- sed -i "s/imageTag:\ \"canary\"/imageTag:\ $IMAGE_TAG/g" charts/builder/values.yaml
139-
- helm package -u charts/builder --version ${DRONE_TAG:-v1.0.0}
140-
- curl -u $CHARTMUSEUM_USERNAME:$CHARTMUSEUM_PASSWORD -F chart=@builder-${DRONE_TAG:-v1.0.0}.tgz "$CHARTMUSEUM_API/api/$([ -z $DRONE_TAG ] && echo testing || echo stable)/charts"
139+
- helm package -u charts/builder --version $([ -z $DRONE_TAG ] && echo 1.0.0 || echo ${DRONE_TAG#v})
140+
- echo $CONTAINER_PASSWORD | helm registry login $DRYCC_REGISTRY -u $CONTAINER_USERNAME --password-stdin
141+
- helm push builder-$([ -z $DRONE_TAG ] && echo 1.0.0 || echo ${DRONE_TAG#v}).tgz oci://$DRYCC_REGISTRY/$([ -z $DRONE_TAG ] && echo charts-testing || echo charts)
141142
environment:
142-
CHARTMUSEUM_USERNAME:
143-
from_secret: chartmuseum_username
144-
CHARTMUSEUM_PASSWORD:
145-
from_secret: chartmuseum_password
146-
CHARTMUSEUM_API:
147-
from_secret: chartmuseum_api
143+
DRYCC_REGISTRY:
144+
from_secret: drycc_registry
145+
CONTAINER_USERNAME:
146+
from_secret: container_username
147+
CONTAINER_PASSWORD:
148+
from_secret: container_password
148149
when:
149150
event:
150151
- push

charts/builder/Chart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ apiVersion: v2
33
home: https://github.com/drycc/builder
44
dependencies:
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
88
description: Git server and application builder for Drycc Workflow.
99
maintainers:
1010
- name: Drycc Team

0 commit comments

Comments
 (0)