Skip to content
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
4 changes: 4 additions & 0 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ jobs:
tags: |
type=semver,pattern={{version}}

- name: Set application version
if: ${{ github.ref_type == 'tag' }}
run: sed -i 's/^version = ".*"$/version = "${{ steps.meta.outputs.version }}"/' Cargo.toml

- name: Build image
uses: docker/build-push-action@v6
env:
Expand Down
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
[package]
name = "numtracker"
version = "0.1.1"
# This version is *not* used for the built container image. It is set during the
# CI build process so that the version always matches the latest git tag.
version = "0.0.0"
edition = "2021"
license = "Apache-2.0"

Expand Down
23 changes: 5 additions & 18 deletions helm/numtracker/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,24 +1,11 @@
apiVersion: v2
name: numtracker
description: Helm chart to deploy the numtracker service for unifying beamline filenaming

# 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
# to be deployed.
#
# Library charts provide useful utilities or functions for the chart developer. They're included as
# a dependency of application charts to inject those utilities and functions into the rendering
# pipeline. Library charts do not define any templates and therefore cannot be deployed.
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.1.0
# These versions are ignored and are automatically set via the CI process to the version from the tag

# 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
# follow Semantic Versioning. They should reflect the version the application is using.
# It is recommended to use it with quotes.
appVersion: "0.1.0"
# This is the version of the helm chart
version: 0.0.0
# This is the version number of the application being deployed by the helm chart
appVersion: "0.0.0"
Loading