[VOL-5496] Add docker release GHA workflow
Signed-off-by: Eric Ball <eball@linuxfoundation.org>
Change-Id: Id12f4baca7504c436ae0e9b1ee37c6ffaa069cbd
diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml
new file mode 100644
index 0000000..92f5e07
--- /dev/null
+++ b/.github/workflows/release.yaml
@@ -0,0 +1,40 @@
+---
+# SPDX-License-Identifier: Apache-2.0
+# Copyright 2026 The Linux Foundation
+
+name: voltha-docker-tools release
+
+# yamllint disable-line rule:truthy
+on:
+ workflow_dispatch:
+ push:
+ # Only invoked on release tag pushes
+ tags:
+ - v*.*.*
+
+permissions:
+ contents: write
+
+jobs:
+ release:
+ runs-on: ubuntu-latest
+ steps:
+ - name: Checkout repository
+ # yamllint disable-line rule:line-length
+ uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
+ with:
+ fetch-depth: 0
+
+ - name: Build and publish Docker image
+ # yamllint disable-line rule:line-length
+ uses: opencord/shared-workflows/.github/actions/docker-publish-action@main
+ with:
+ # Empty: BBSim's Makefile builds the tag as
+ # ${DOCKER_REGISTRY}${DOCKER_REPOSITORY}bbsim, so the registry
+ # prefix is left blank and images are pushed to Docker Hub.
+ docker-registry: ""
+ docker-repository: "voltha/"
+ image-name: "voltha-ci-tools"
+ branch-tag: ${{ github.ref_name }}
+ docker-username: ${{ secrets.DOCKER_USERNAME }}
+ docker-password: ${{ secrets.DOCKER_PASSWORD }}