Skip to content

Commit a74a525

Browse files
committed
feat(monitor): switch to oci charts
1 parent 82649d8 commit a74a525

2 files changed

Lines changed: 12 additions & 11 deletions

File tree

.drone/drone.yml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff 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

charts/monitor/Chart.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ home: https://github.com/drycc/monitor
33
apiVersion: v2
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: Monitoring for Drycc Workflow.
99
maintainers:
1010
- name: Drycc Team
1111
email: engineering@drycc.com
12-
version: v1.1.0
12+
version: 1.0.0

0 commit comments

Comments
 (0)