Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
sgalsaleh committed Jul 25, 2024
1 parent 1e2af44 commit 0103fed
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/update-addons.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ on:
velero_chart_version:
description: 'Velero chart version for updating the chart and images'
required: false
seaweedfs_chart_version:
description: 'SeaweedFS chart version for updating the chart and images'
required: false
jobs:
build:
name: Build
Expand Down Expand Up @@ -64,6 +67,7 @@ jobs:
CHARTS_DESTINATION: registry.replicated.com/ec-charts
INPUT_OPENEBS_CHART_VERSION: ${{ github.event.inputs.openebs_chart_version }}
INPUT_VELERO_CHART_VERSION: ${{ github.event.inputs.velero_chart_version }}
INPUT_SEAWEEDFS_CHART_VERSION: ${{ github.event.inputs.seaweedfs_chart_version }}
run: |
chmod 755 ./output/bin/buildtools
./output/bin/buildtools update addon ${{ matrix.addon }}
Expand Down
4 changes: 2 additions & 2 deletions cmd/buildtools/seaweedfs.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ var updateSeaweedFSAddonCommand = &cli.Command{
Action: func(c *cli.Context) error {
logrus.Infof("updating seaweedfs addon")

nextChartVersion := os.Getenv("INPUT_SEAWEEDFS_VERSION")
nextChartVersion := os.Getenv("INPUT_SEAWEEDFS_CHART_VERSION")
if nextChartVersion != "" {
logrus.Infof("using input override from INPUT_SEAWEEDFS_VERSION: %s", nextChartVersion)
logrus.Infof("using input override from INPUT_SEAWEEDFS_CHART_VERSION: %s", nextChartVersion)
} else {
logrus.Infof("fetching the latest seaweedfs chart version")
latest, err := LatestChartVersion("seaweedfs", "seaweedfs")
Expand Down

0 comments on commit 0103fed

Please sign in to comment.