Skip to content

Commit

Permalink
Bumped kpi tracker (#218)
Browse files Browse the repository at this point in the history
* fixed deps

* updated rust version

* updated changelog
  • Loading branch information
lassemand authored Sep 13, 2024
1 parent dc731dd commit f6d5177
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 9 deletions.
15 changes: 10 additions & 5 deletions .github/workflows/release-kpi-tracker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,12 @@ on:
tags:
- kpi-tracker/*.*.*

workflow_dispatch:

env:
REGISTRY: docker.io
IMAGE_NAME: kpi-tracker
SERVICE_NAME: kpi-tracker
RUST_VERSION: rust:1.76-bookworm

jobs:
publish-docker-image:
Expand All @@ -28,14 +31,14 @@ jobs:
- name: Extract version tag from Cargo.toml manifest.
id: meta
run: |
export VERSION=$(yq .package.version kpi-tracker/Cargo.toml)
export FULL_IMAGE_TAG="${{ env.REGISTRY }}/concordium/$IMAGE_NAME:$VERSION"
export VERSION=$(yq .package.version ${{ env.SERVICE_NAME }}/Cargo.toml)
export FULL_IMAGE_TAG="${{ env.REGISTRY }}/concordium/${{ env.SERVICE_NAME }}:$VERSION"
echo "::notice FULL_IMAGE_TAG=${FULL_IMAGE_TAG}"
# Make sure the image does not exist. Abort if we can retrieve any metadata.
if docker manifest inspect ${FULL_IMAGE_TAG} > /dev/null; then
echo "::error ${FULL_IMAGE_TAG} already exists"
exit 1
elif [ ! "${{ github.ref_name }}" = "kpi-tracker/${VERSION}" ]; then
elif [ ! "${{ github.ref_name }}" = "${{ env.SERVICE_NAME }}/${VERSION}" ]; then
echo "::error Expected tag ${EXPECTED_TAG} does not match the version ${VERSION}."
exit 1
else
Expand All @@ -46,7 +49,9 @@ jobs:
uses: docker/build-push-action@f2a1d5e99d037542a71f64918e516c093c6f3fc4
with:
context: .
file: ./kpi-tracker/scripts/Dockerfile
file: ./${{ SERVICE_NAME }}/scripts/Dockerfile
push: true
platforms: linux/amd64
tags: ${{ steps.meta.outputs.tag }}
build-args: |
build_image=${{ env.RUST_VERSION }}
2 changes: 1 addition & 1 deletion chain-prometheus-exporter/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## 1.2.2
## 1.2.3
- Updated the Concordium Rust SDK to support the changes introduced in protocol 7.

## 1.1.2
Expand Down
2 changes: 1 addition & 1 deletion kpi-tracker/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Changelog for the kpi-tracker service

## 2.1.0
## 2.1.1
- Updated the Concordium Rust SDK to support the changes introduced in protocol 7.

## 2.0.0
Expand Down
2 changes: 1 addition & 1 deletion kpi-tracker/Cargo.lock

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

2 changes: 1 addition & 1 deletion kpi-tracker/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "concordium-kpi-tracker"
version = "2.1.0"
version = "2.1.1"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
Expand Down

0 comments on commit f6d5177

Please sign in to comment.