From a83660a5568b7dd8398ac59fe37fc1a5aeb66345 Mon Sep 17 00:00:00 2001 From: James Rawlings Date: Wed, 25 Aug 2021 17:07:47 +0100 Subject: [PATCH] chore: release chart to github --- .lighthouse/jenkins-x/release.yaml | 23 ++++++++++------------- 1 file changed, 10 insertions(+), 13 deletions(-) diff --git a/.lighthouse/jenkins-x/release.yaml b/.lighthouse/jenkins-x/release.yaml index d10a380..eb9e6fa 100755 --- a/.lighthouse/jenkins-x/release.yaml +++ b/.lighthouse/jenkins-x/release.yaml @@ -29,25 +29,22 @@ spec: resources: {} - name: chart-docs resources: {} - - image: gcr.io/jenkinsxio/jx-boot:3.0.773 - name: release-chart + - image: gcr.io/jenkinsxio/jx-changelog:0.0.36 + name: changelog resources: {} script: | #!/usr/bin/env sh - if [ -d "/workspace/source/charts/$REPO_NAME" ]; then source .jx/variables.sh - cd /workspace/source/charts/$REPO_NAME - make release; else echo no charts; fi - - name: changelog + source .jx/variables.sh + if [ -d "charts/$REPO_NAME" ]; then + sed -i -e "s/^version:.*/version: $VERSION/" ./charts/$REPO_NAME/Chart.yaml + sed -i -e "s/repository:.*/repository: $DOCKER_REGISTRY\/$DOCKER_REGISTRY_ORG\/$APP_NAME/" ./charts/$REPO_NAME/values.yaml + sed -i -e "s/tag:.*/tag: $VERSION/" ./charts/$REPO_NAME/values.yaml; + else echo no charts; fi + jx changelog create --verbose --header-file=hack/changelog-header.md --version=$VERSION --rev=$PULL_BASE_SHA --output-markdown=changelog.md --update-release=false + - name: release-chart resources: {} - name: upload-binaries resources: {} - - image: gcr.io/jenkinsxio/builder-go:2.1.142-761 - name: promote-release - resources: {} - script: | - #!/bin/bash - source .jx/variables.sh - ./promote.sh podTemplate: {} serviceAccountName: tekton-bot timeout: 240h0m0s