Skip to content

Commit

Permalink
chore(charts): change canary app version
Browse files Browse the repository at this point in the history
  • Loading branch information
duanhongyi committed Apr 5, 2024
1 parent b17c5f6 commit 0f96e2a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .woodpecker/chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ steps:
commands:
- export VERSION=$(sed 's#v##' <<< $CI_COMMIT_TAG)
- export IMAGE_TAG=$([ ! -z $CI_COMMIT_TAG ] && echo \"$VERSION\" || echo \"canary\")
- export APP_VERSION=$([ ! -z $CI_COMMIT_TAG ] && echo $VERSION || echo 1.0.0)
- export APP_VERSION=$([ -z $CI_COMMIT_TAG ] && echo $CI_COMMIT_SHA || echo $VERSION)
- export CHART_VERSION=$([ -z $CI_COMMIT_TAG ] && echo 1.0.0 || echo $VERSION)
- sed -i "s/imageTag:\ \"canary\"/imageTag:\ $IMAGE_TAG/g" charts/$${CI_REPO_NAME}/values.yaml
- helm package -u charts/$${CI_REPO_NAME} --version $CHART_VERSION --app-version $APP_VERSION
Expand All @@ -25,4 +25,4 @@ steps:
- tag

depends_on:
- manifest
- manifest
11 changes: 6 additions & 5 deletions charts/registry/templates/registry-cronjob-daily.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,12 @@ spec:
args: {{- include "common.tplvalues.render" (dict "value" .Values.diagnosticMode.args "context" $) | nindent 14 }}
{{- else }}
args:
- /bin/boot
- garbage-collect
- $(DRYCC_REGISTRY_CONFIG)
- --dry-run
- --delete-untagged
- /usr/bin/env
- bash
- -ec
- |
# run garbage collect
boot garbage-collect ${DRYCC_REGISTRY_CONFIG} --dry-run --delete-untagged
{{- end }}
{{- include "registry.envs" . | indent 12 }}
{{- end }}

0 comments on commit 0f96e2a

Please sign in to comment.