diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 22398c5..f01b3d9 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -22,6 +22,7 @@ jobs: run: | git config user.name "$GITHUB_ACTOR" git config user.email "$GITHUB_ACTOR@users.noreply.github.com" + pip3 install chartpress - name: Install Helm uses: azure/setup-helm@v4 @@ -32,5 +33,6 @@ jobs: uses: helm/chart-releaser-action@v1.6.0 with: charts_dir: ./ + version: $GITHUB_REF_NAME env: CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}" diff --git a/interlink/Chart.yaml b/interlink/Chart.yaml index da8de38..f604ba2 100644 --- a/interlink/Chart.yaml +++ b/interlink/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v2 name: interlink -description: Install interLink components and initiate your virtual node. +description: Install interLink components and initiate your virtual node. # A chart can be either an 'application' or a 'library' chart. # @@ -15,7 +15,7 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 0.2.2 +version: 0.2.3 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. Versions are not expected to diff --git a/interlink/chartpress.yaml b/interlink/chartpress.yaml new file mode 100644 index 0000000..ba96152 --- /dev/null +++ b/interlink/chartpress.yaml @@ -0,0 +1,92 @@ +charts: + # list of charts by name + # each name should be the name of a Helm chart + - name: interlink + # Directory containing the chart, relative to chartpress.yaml. + # Can be omitted if the directory is the same as the chart name. + chartPath: interlink + + # the prefix to use for built images + imagePrefix: intertwin-eu/interlink- + # tag to use when resetting the chart values + # with the --reset flag. It defaults to "set-by-chartpress". + resetTag: latest + # version to use when resetting the Chart.yaml's version field with the + # --reset flag. It defaults to "0.0.1-set.by.chartpress". This is a valid + # SemVer 2 version, which is required for a helm lint command to succeed. + #resetVersion: 1.2.3-dev + + # baseVersion sets the base version for development tags, + # instead of using the latest tag from `git describe`. + # This gives you more control over development version tags + # and lets you ensure prerelease tags are always sorted in the right order. + # Only useful when publishing development releases. + # Recommended together with a version-bumping tool like `tbump`. + # if baseVersion is not a prerelease version (no -suffix), + # the suffix `-0.dev` will be appended. + # + # Alternatively baseVersion can be set to "major", "minor", or "patch", then + # baseVersion will be calculated based on the latest version tag from `git + # describe`, but have its "major", "minor", or "patch" version increment if + # the version isn't a pre-release. + baseVersion: 0.0.1-0.dev + + # The git repo whose gh-pages contains the charts. This can be a local + # path such as "." as well but if matching / will be + # assumed to be a separate GitHub repository. + repo: + git: interTwin-eu/interlink-helm-chart + published: https://intertwin-eu.github.io/interlink-helm-chart/ + # Additional paths that when modified should lead to an updated Chart.yaml + # version, other than the chart directory in or any path that + # influence the images of the chart. These paths should be set relative to + # chartpress.yaml's directory. + # paths: + # - ../setup.py + # - ../binderhub + # images to build for this chart (optional) + images: [] + # binderhub: + # # imageName overrides the default name of the image. The default name + # # is the imagePrefix augmented with the key of this configuration. It + # # would be jupyterhub/k8s-binderhub in this case. + # imageName: jupyterhub/k8s-custom-image-name + # # Build arguments to be passed using docker's --build-arg flag as + # # --build-arg =. TAG and LAST_COMMIT are expandable. + # buildArgs: + # MY_STATIC_BUILD_ARG: "hello world" + # MY_DYNAMIC_BUILD_ARG: "{TAG}-{LAST_COMMIT}" + # # Build options to be passed to the docker build command. Pass a list + # # of strings to be appended to the end of the build command. These are + # # passed directly to the command line, so prepend each option with "--" + # # like in the examples below. TAG and LAST_COMMIT are expandable. + # extraBuildCommandOptions: + # - --label=maintainer=octocat + # - --label=ref={TAG}-{LAST_COMMIT} + # - --rm + # # contextPath is the path to the directory that is to be considered the + # # current working directory during the build process of the Dockerfile. + # # This is by default the folder of the Dockerfile. This path should be + # # set relative to chartpress.yaml. + # contextPath: .. + # # By default, changes to the contextPath will make chartpress rebuild + # # the image, but this option make that configurable. + # rebuildOnContextPathChanges: false + # # Path to the Dockerfile, relative to chartpress.yaml. Defaults to + # # "images//Dockerfile". + # dockerfilePath: images/binderhub/Dockerfile + # # Path(s) in /values.yaml to be updated with image name and + # # tag. + # valuesPath: + # - singleuser.image + # - singleuser.profileList.0.kubespawner_override.image + # # Additional paths, relative to chartpress.yaml's directory, that should + # # be used to indicate that a new tag of the image is required, aside + # # from the contextPath and dockerfilePath for building the image itself. + # paths: + # - assets + # # If chartpress is used to build images for multiple architectures but + # # not all of those architectures are supported by an image they can be + # # skipped + # skipPlatforms: + # - linux/arm64