Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adds support for marking a helm chart as a prerelease #2210

Merged
merged 4 commits into from
Jun 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions .github/workflows/artifact-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -206,10 +206,12 @@ jobs:
TRIMMED_VERSION="${VERSION/#$V_PREFIX}"
echo "$TRIMMED_VERSION"
echo "CHART_VERSION=$TRIMMED_VERSION" >> $GITHUB_ENV
echo "IS_PRERELEASE=false" >> $GITHUB_ENV
else
VERSION="${{ steps.next_pre_version.outputs.version }}"
echo "$VERSION"
echo "CHART_VERSION=$VERSION" >> $GITHUB_ENV
echo "IS_PRERELEASE=true" >> $GITHUB_ENV
fi

- name: Setup Chart.yaml
Expand All @@ -221,6 +223,8 @@ jobs:
echo "$filepath"
yq -i '.version = strenv(CHART_VERSION)' "$filepath"
yq -i '.appVersion = strenv(CHART_VERSION)' "$filepath"

yq -i '.annotations."artifacthub.io/prerelease" = strenv(IS_PRERELEASE)' "$filepath"
done

for filepath in $(find backend/charts/*/Chart.yaml -type f -name 'Chart.yaml') ; do
Expand Down Expand Up @@ -283,10 +287,12 @@ jobs:
TRIMMED_VERSION="${VERSION/#$V_PREFIX}"
echo "$TRIMMED_VERSION"
echo "CHART_VERSION=$TRIMMED_VERSION" >> $GITHUB_ENV
echo "IS_PRERELEASE=false" >> $GITHUB_ENV
else
VERSION="${{ steps.next_pre_version.outputs.version }}"
echo "$VERSION"
echo "CHART_VERSION=$VERSION" >> $GITHUB_ENV
echo "IS_PRERELEASE=true" >> $GITHUB_ENV
fi

- name: Setup Chart.yaml
Expand All @@ -298,6 +304,8 @@ jobs:
echo "$filepath"
yq -i '.version = strenv(CHART_VERSION)' "$filepath"
yq -i '.appVersion = strenv(CHART_VERSION)' "$filepath"

yq -i '.annotations."artifacthub.io/prerelease" = strenv(IS_PRERELEASE)' "$filepath"
done

for filepath in $(find frontend/apps/web/charts/*/Chart.yaml -type f -name 'Chart.yaml') ; do
Expand Down Expand Up @@ -360,10 +368,12 @@ jobs:
TRIMMED_VERSION="${VERSION/#$V_PREFIX}"
echo "$TRIMMED_VERSION"
echo "CHART_VERSION=$TRIMMED_VERSION" >> $GITHUB_ENV
echo "IS_PRERELEASE=false" >> $GITHUB_ENV
else
VERSION="${{ steps.next_pre_version.outputs.version }}"
echo "$VERSION"
echo "CHART_VERSION=$VERSION" >> $GITHUB_ENV
echo "IS_PRERELEASE=true" >> $GITHUB_ENV
fi

- name: Setup Chart.yaml
Expand All @@ -375,6 +385,8 @@ jobs:
echo "$filepath"
yq -i '.version = strenv(CHART_VERSION)' "$filepath"
yq -i '.appVersion = strenv(CHART_VERSION)' "$filepath"

yq -i '.annotations."artifacthub.io/prerelease" = strenv(IS_PRERELEASE)' "$filepath"
done

for filepath in $(find worker/charts/*/Chart.yaml -type f -name 'Chart.yaml') ; do
Expand Down Expand Up @@ -439,10 +451,12 @@ jobs:
TRIMMED_VERSION="${VERSION/#$V_PREFIX}"
echo "$TRIMMED_VERSION"
echo "CHART_VERSION=$TRIMMED_VERSION" >> $GITHUB_ENV
echo "IS_PRERELEASE=false" >> $GITHUB_ENV
else
VERSION="${{ steps.next_pre_version.outputs.version }}"
echo "$VERSION"
echo "CHART_VERSION=$VERSION" >> $GITHUB_ENV
echo "IS_PRERELEASE=true" >> $GITHUB_ENV
fi

- name: Setup Chart.yaml
Expand All @@ -454,6 +468,8 @@ jobs:
echo "$filepath"
yq -i '.version = strenv(CHART_VERSION)' "$filepath"
yq -i '.appVersion = strenv(CHART_VERSION)' "$filepath"

yq -i '.annotations."artifacthub.io/prerelease" = strenv(IS_PRERELEASE)' "$filepath"
done

for filepath in $(find charts/*/Chart.yaml -type f -name 'Chart.yaml') ; do
Expand Down
8 changes: 6 additions & 2 deletions backend/charts/api/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
apiVersion: v2
name: api
description: A Helm chart for the Neosync Backend API
home: https://www.neosync.dev
sources:
- https://github.com/nucleuscloud/neosync
icon: https://assets.nucleuscloud.com/neosync/newbrand/logo_small.png
# A chart can be either an 'application' or a 'library' chart.
#
# Application charts are a collection of templates that can be packaged into versioned archives
Expand All @@ -14,6 +18,6 @@ type: application
#
# This is changed automatically to the tag by the github workflow.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 'v0'
version: "v0"

appVersion: 'v0'
appVersion: "v0"
6 changes: 6 additions & 0 deletions backend/charts/api/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

A Helm chart for the Neosync Backend API

**Homepage:** <https://www.neosync.dev>

## Source Code

* <https://github.com/nucleuscloud/neosync>

## Values

| Key | Type | Default | Description |
Expand Down
6 changes: 5 additions & 1 deletion charts/neosync/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
apiVersion: v2
name: neosync
description: A Helm chart for Neosync
description: A Helm chart for Neosync that contains the api, app, and worker
home: https://www.neosync.dev
sources:
- https://github.com/nucleuscloud/neosync
icon: https://assets.nucleuscloud.com/neosync/newbrand/logo_small.png
# A chart can be either an 'application' or a 'library' chart.
#
# Application charts are a collection of templates that can be packaged into versioned archives
Expand Down
8 changes: 7 additions & 1 deletion charts/neosync/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
# neosync

A Helm chart for Neosync
A Helm chart for Neosync that contains the api, app, and worker

**Homepage:** <https://www.neosync.dev>

## Source Code

* <https://github.com/nucleuscloud/neosync>

## Requirements

Expand Down
4 changes: 4 additions & 0 deletions frontend/apps/web/charts/app/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
apiVersion: v2
name: app
description: A Helm chart for the Neosync App
home: https://www.neosync.dev
sources:
- https://github.com/nucleuscloud/neosync
icon: https://assets.nucleuscloud.com/neosync/newbrand/logo_small.png
# A chart can be either an 'application' or a 'library' chart.
#
# Application charts are a collection of templates that can be packaged into versioned archives
Expand Down
6 changes: 6 additions & 0 deletions frontend/apps/web/charts/app/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

A Helm chart for the Neosync App

**Homepage:** <https://www.neosync.dev>

## Source Code

* <https://github.com/nucleuscloud/neosync>

## Values

| Key | Type | Default | Description |
Expand Down
8 changes: 6 additions & 2 deletions worker/charts/worker/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
apiVersion: v2
name: worker
description: A Helm chart for the Neosync Temporal Worker
home: https://www.neosync.dev
sources:
- https://github.com/nucleuscloud/neosync
icon: https://assets.nucleuscloud.com/neosync/newbrand/logo_small.png
# A chart can be either an 'application' or a 'library' chart.
#
# Application charts are a collection of templates that can be packaged into versioned archives
Expand All @@ -14,6 +18,6 @@ type: application
#
# This is changed automatically to the tag by the github workflow.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 'v0'
version: "v0"

appVersion: 'v0'
appVersion: "v0"
6 changes: 6 additions & 0 deletions worker/charts/worker/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

A Helm chart for the Neosync Temporal Worker

**Homepage:** <https://www.neosync.dev>

## Source Code

* <https://github.com/nucleuscloud/neosync>

## Values

| Key | Type | Default | Description |
Expand Down