From 1769a662e67e3ebf29ea77dd0d3afccc8817cbe7 Mon Sep 17 00:00:00 2001 From: Gaurav Gahlot Date: Tue, 25 Aug 2026 20:24:19 +0200 Subject: [PATCH 1/2] update the build and push step to release right tags Signed-off-by: Gaurav Gahlot --- .../build-onvif-video-broker-container.yml | 25 ++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-onvif-video-broker-container.yml b/.github/workflows/build-onvif-video-broker-container.yml index c8e03dc..9b3d11a 100644 --- a/.github/workflows/build-onvif-video-broker-container.yml +++ b/.github/workflows/build-onvif-video-broker-container.yml @@ -60,5 +60,28 @@ jobs: password: ${{ secrets.GITHUB_TOKEN }} - name: Build and push + env: + VERSION: ${{ steps.version-string.outputs.version }} + RELEASE_TAG: ${{ github.event.release.tag_name }} run: | - make onvif-video-broker PREFIX=ghcr.io/project-akri/examples $(${{ github.event_name != 'pull_request' }} && echo "PUSH=1") + if [ "${{ github.event_name }}" = "release" ]; then + LABEL_PREFIX="${RELEASE_TAG:-v${VERSION}}" + else + LABEL_PREFIX="v${VERSION}-dev" + fi + echo "Publishing onvif-video-broker with tag: ${LABEL_PREFIX}" + make onvif-video-broker PREFIX=ghcr.io/project-akri/examples LABEL_PREFIX="${LABEL_PREFIX}" $(${{ github.event_name != 'pull_request' }} && echo "PUSH=1") + + if [ "${{ github.event_name }}" = "release" ]; then + IMAGE="ghcr.io/project-akri/examples/onvif-video-broker" + if echo "${LABEL_PREFIX}" | grep -qE '^v?[0-9]+\.[0-9]+\.[0-9]+$'; then + MAJOR_MINOR="$(echo "${LABEL_PREFIX}" | sed -nE 's/^v?([0-9]+\.[0-9]+)\..*/v\1/p')" + echo "Adding release tags: ${MAJOR_MINOR}, latest" + docker buildx imagetools create \ + --tag "${IMAGE}:${MAJOR_MINOR}" \ + --tag "${IMAGE}:latest" \ + "${IMAGE}:${LABEL_PREFIX}" + else + echo "::notice::${LABEL_PREFIX} is a pre-release or non-semver tag; publishing it alone (no vMAJOR.MINOR, no latest)" + fi + fi From 3ce05076bd0e49ceb0a677e9fb1d48b4a9995dc9 Mon Sep 17 00:00:00 2001 From: Gaurav Gahlot Date: Tue, 25 Aug 2026 20:24:55 +0200 Subject: [PATCH 2/2] update to release version Signed-off-by: Gaurav Gahlot --- version.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/version.txt b/version.txt index b965ab8..a803cc2 100644 --- a/version.txt +++ b/version.txt @@ -1 +1 @@ -0.13.21 +0.14.0