Skip to content

Commit

Permalink
Versioning information and pre-releases
Browse files Browse the repository at this point in the history
This updates the releasing procedure, including directions for
publishing a pre-release (alpha, beta, release candidate).

The `Jenkinsfile.github` declaritive pipeline now only publishes final
release tags to stable, pre-releases still publish to unstable.

This also cleans up the `README.md`, fixing the changelog links and
table of contents.

The "Versioning" section now elaborates on pre-releases, and the
`setuptools_scm` configuration now guesses the next version.
  • Loading branch information
rustydb committed Jan 29, 2023
1 parent 3371011 commit fde5457
Show file tree
Hide file tree
Showing 4 changed files with 357 additions and 184 deletions.
10 changes: 9 additions & 1 deletion Jenkinsfile.github
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,11 @@
def mainSleVersion = '15.4'
def pythonImage = 'artifactory.algol60.net/csm-docker/stable/csm-docker-sle-python'
def pythonVersion = '3.10.8'
def isStable = env.TAG_NAME != null ? true : false

// Only consider X.Y.Z tags as stable, do not consider X.Y.Z{[a|b|rc]N} or X.Y.Z.* tags as stable.
// The ==~ operator performs an exact match.
def stableToken = ~/v?\d+\.\d+\.\d+/
def isStable = (env.TAG_NAME != null & env.TAG_NAME ==~ stableToken) ? true : false
pipeline {
agent {
label "metal-gcp-builder"
Expand Down Expand Up @@ -113,6 +117,7 @@ pipeline {

stage('Build: Image') {
when {
// This could be removed if we published CANU images with the SLES version in the tag, or if we just built for one distro.
expression { "${sleVersion}" == "${mainSleVersion}" }
}
steps {
Expand All @@ -121,8 +126,10 @@ pipeline {
}
}
}

stage('Publish: Image') {
when {
// This could be removed if we published CANU images with the SLES version in the tag, or if we just built for one distro
expression { "${sleVersion}" == "${mainSleVersion}" }
}
steps {
Expand All @@ -131,6 +138,7 @@ pipeline {
}
}
}

stage('Publish: RPMs') {

steps {
Expand Down
Loading

0 comments on commit fde5457

Please sign in to comment.