Skip to content

Commit

Permalink
fix: try upgrade the version on the website on promote
Browse files Browse the repository at this point in the history
  • Loading branch information
jstrachan committed Jul 6, 2021
1 parent cf02f4a commit b226d96
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
1 change: 1 addition & 0 deletions .lighthouse/jenkins-x/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ spec:
echo "using versions JX: ${JX_VERSION} lighthouse: ${LH_VERSION}"
jx scm release update --owner jenkins-x --name jx --tag v$JX_VERSION --prerelease=false --kind github --server https://github.com --token $GITHUB_TOKEN
jx scm release update --owner jenkins-x --name lighthouse --tag v$LH_VERSION --prerelease=false --kind github --server https://github.com --token $GITHUB_TOKEN
./.lighthouse/jenkins-x/release/promote-jx-website.sh
- name: changelog
resources: {}
- image: ghcr.io/jenkins-x/jx:3.2.165
Expand Down
15 changes: 15 additions & 0 deletions .lighthouse/jenkins-x/release/promote-jx-website.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/usr/bin/env bash

set -o errexit
set -o nounset
set -o pipefail

pushd $(mktemp -d)
git clone https://github.com/jenkins-x/jx-docs.git

pushd jx-docs
sed -i "s/release = \".*\"/release = \"${JX_VERSION}\"/" config.toml
git commit --allow-empty -a -m "chore: upgrade jx version"
git push
popd
popd

0 comments on commit b226d96

Please sign in to comment.