Skip to content
Closed
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
42 changes: 42 additions & 0 deletions .github/workflows/tag-repo-publish-image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# SPDX-License-Identifier: Apache-2.0
# Copyright 2024 Intel Corporation
# Copyright 2025 Canonical Ltd.
name: Release Pipeline

on:
workflow_call:

permissions:
contents: read

jobs:
# Outputs:
# changed: 'true' if a new tag was created, 'false' otherwise
# version: a semver string, contents of the VERSION file
tag-github:
uses: onosproject/.github/.github/workflows/tag-github.yml@main
secrets: inherit

release-image:
needs: tag-github
if: needs.tag-github.outputs.changed == 'true'
permissions:
contents: read
packages: write
actions: read
id-token: write
attestations: write
uses: onosproject/.github/.github/workflows/release-image.yml@main
with:
# Prefix the version with 'v' to follow tagging conventions
docker_tag: v${{ needs.tag-github.outputs.version }}
secrets: inherit

update-version:
needs: [tag-github, release-image]
if: needs.release-image.result == 'success'
uses: onosproject/.github/.github/workflows/bump-version.yml@main
secrets: inherit
with:
# Prefix the version with 'v' to follow tagging conventions
version: v${{ needs.tag-github.outputs.version }}