mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-06 20:27:12 +00:00
Merge pull request #4519 from Infisical/fix/nightlyReleases
Improve nightly releases logic to follow industry standard
This commit is contained in:
@@ -36,11 +36,23 @@ jobs:
|
|||||||
|
|
||||||
echo "Latest production tag: $LATEST_STABLE_TAG"
|
echo "Latest production tag: $LATEST_STABLE_TAG"
|
||||||
|
|
||||||
|
# Extract version numbers and increment minor version
|
||||||
|
VERSION_NUMBERS=$(echo "$LATEST_STABLE_TAG" | sed 's/^v//')
|
||||||
|
MAJOR=$(echo "$VERSION_NUMBERS" | cut -d'.' -f1)
|
||||||
|
MINOR=$(echo "$VERSION_NUMBERS" | cut -d'.' -f2)
|
||||||
|
PATCH=$(echo "$VERSION_NUMBERS" | cut -d'.' -f3)
|
||||||
|
|
||||||
|
# Increment minor version, reset patch to 0
|
||||||
|
NEXT_MINOR=$((MINOR + 1))
|
||||||
|
NEXT_VERSION="v${MAJOR}.${NEXT_MINOR}.0"
|
||||||
|
|
||||||
|
echo "Next version for nightly: $NEXT_VERSION"
|
||||||
|
|
||||||
# Get current date in YYYYMMDD format
|
# Get current date in YYYYMMDD format
|
||||||
DATE=$(date +%Y%m%d)
|
DATE=$(date +%Y%m%d)
|
||||||
|
|
||||||
# Base nightly tag name
|
# Base nightly tag name using next version
|
||||||
BASE_TAG="${LATEST_STABLE_TAG}-nightly-${DATE}"
|
BASE_TAG="${NEXT_VERSION}-nightly-${DATE}"
|
||||||
|
|
||||||
# Check if this exact tag already exists
|
# Check if this exact tag already exists
|
||||||
if git tag --list | grep -q "^${BASE_TAG}$"; then
|
if git tag --list | grep -q "^${BASE_TAG}$"; then
|
||||||
@@ -65,7 +77,6 @@ jobs:
|
|||||||
|
|
||||||
echo "Generated nightly tag: $NIGHTLY_TAG"
|
echo "Generated nightly tag: $NIGHTLY_TAG"
|
||||||
echo "NIGHTLY_TAG=$NIGHTLY_TAG" >> $GITHUB_ENV
|
echo "NIGHTLY_TAG=$NIGHTLY_TAG" >> $GITHUB_ENV
|
||||||
echo "LATEST_PRODUCTION_TAG=$LATEST_STABLE_TAG" >> $GITHUB_ENV
|
|
||||||
|
|
||||||
git tag "$NIGHTLY_TAG"
|
git tag "$NIGHTLY_TAG"
|
||||||
git push origin "$NIGHTLY_TAG"
|
git push origin "$NIGHTLY_TAG"
|
||||||
|
|||||||
@@ -19,8 +19,9 @@ Infisical provides two distinct release channels with different update frequenci
|
|||||||
<Tabs>
|
<Tabs>
|
||||||
<Tab title="Nightly Channel">
|
<Tab title="Nightly Channel">
|
||||||
- **Update Frequency**: Daily builds during weekdays (Monday-Friday)
|
- **Update Frequency**: Daily builds during weekdays (Monday-Friday)
|
||||||
- **Version Tags**: `vX.Y.Z-nightly-YYYYMMDD` (e.g., `v0.146.0-nightly-20250423`)
|
- **Versioning Strategy**: Nightly releases provide daily patches and features while making its way towards the next stable release
|
||||||
- **Multiple Daily Builds**: If multiple nightly builds are created on the same day, they are numbered incrementally: `vX.Y.Z-nightly-YYYYMMDD.1`, `vX.Y.Z-nightly-YYYYMMDD.2`, etc.
|
- **Version Format**: `vX.Y.0-nightly-YYYYMMDD` where X.Y represents the next minor version increment from the latest stable release
|
||||||
|
- **Multiple Daily Builds**: If multiple nightly builds are created on the same day, they are numbered incrementally: `vX.Y.0-nightly-YYYYMMDD.1`, `vX.Y.0-nightly-YYYYMMDD.2`, etc.
|
||||||
- **Stability**: Latest features with standard CI/CD testing
|
- **Stability**: Latest features with standard CI/CD testing
|
||||||
- **Release Process**: Built from main branch after all automated tests pass
|
- **Release Process**: Built from main branch after all automated tests pass
|
||||||
- **Intended Audience**: Development environments & early adopters
|
- **Intended Audience**: Development environments & early adopters
|
||||||
@@ -31,6 +32,7 @@ Infisical provides two distinct release channels with different update frequenci
|
|||||||
|
|
||||||
**Characteristics:**
|
**Characteristics:**
|
||||||
- Access to latest features immediately
|
- Access to latest features immediately
|
||||||
|
- Pre-release versions of upcoming stable releases
|
||||||
- Faster security patch delivery
|
- Faster security patch delivery
|
||||||
- Higher update frequency (daily)
|
- Higher update frequency (daily)
|
||||||
</Tab>
|
</Tab>
|
||||||
|
|||||||
Reference in New Issue
Block a user