You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Apply container release procedures from ServiceControl to ServicePulse (#1894)
* Apply container release procedures from ServiceControl to ServicePulse
* Also do Major.Minor tag
* Readme as well
* Throw if releasing a lower-versioned patch on the same minor
* Apply version check to all release jobs
Write-Output "Latest released v$major.$minor version on GitHub = $latestForMinor"
81
+
82
+
$isLatest = $false
83
+
if ( -not $isPrerelease ) {
84
+
$vNew = [System.Version]$version
85
+
$vPrev = [System.Version]$latestVersion
86
+
$vPrevForMajor = [System.Version]$latestForMajor
87
+
$vPrevForMinor = [System.Version]$latestForMinor
88
+
89
+
if ($vNew -ge $vPrev) {
90
+
$isLatest = $true
91
+
}
92
+
93
+
# For new majors, vNew < null evaluates to false, no exception thrown
94
+
# Logic would not be appropriate if support policy allows backports to previous minors
95
+
if ($vNew -lt $vPrevForMajor) {
96
+
throw "Releasing a version $version that is not the latest version for the major would break container tagging and is not supported. (Latest v$major version is $latestForMajor)"
97
+
}
98
+
99
+
# For new minors, vNew < null evaluates to false, no exception thrown
100
+
if ($vNew -lt $vPrevForMinor) {
101
+
throw "Releasing a version $version that is not the latest version for the minor would break container tagging and is not supported. (Latest v$major.$minor version is $latestForMinor)"
--annotation "index:org.opencontainers.image.description=ServicePulse provides real-time production monitoring for distributed applications. It monitors the health of a system's endpoints, detects processing errors, sends failed messages for reprocessing, and ensures the specific environment's needs are met, all in one consolidated dashboard." \
Copy file name to clipboardExpand all lines: src/Container/README.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -63,6 +63,10 @@ If `particular/servicepulse:1.30.1` is the latest release in the version 1 major
63
63
64
64
The major version tag is never added to images pushed to [the GitHub Container Registry](https://github.com/Particular/ServicePulse/pkgs/container/servicepulse).
65
65
66
+
#### Minor version tag
67
+
68
+
The latest release within a minor version will be tagged with `{major}.{minor}` on images pushed to Docker Hub. This allows users to target the latest patch within a specific minor version.
69
+
66
70
## Built With
67
71
68
72
This image is built from the stable Alpine version of the [nginx official Docker image](https://hub.docker.com/_/nginx/).
0 commit comments