-
Notifications
You must be signed in to change notification settings - Fork 59
47 lines (42 loc) · 1.17 KB
/
release.yml
File metadata and controls
47 lines (42 loc) · 1.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# SPDX-License-Identifier: Apache-2.0
# Copyright 2024 Intel Corporation
# Copyright 2024 Kyunghee University
# Copyright 2025 Canonical Ltd.
name: Release Pipeline
on:
push:
branches:
- master
paths:
- "VERSION"
permissions:
contents: read
jobs:
# Tag GitHub Release
# The convention is to prefix the version with a 'v', e.g., v1.2.3
tag-github:
uses: onosproject/.github/.github/workflows/tag-github.yml@main
with:
add_v: true
secrets: inherit
# Build and Release Docker Image
# The convention is to use the same tag for the Docker image as the GitHub Release
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:
docker_tag: ${{ needs.tag-github.outputs.version }}
secrets: inherit
# Bump Version
update-version:
needs: tag-github
if: needs.tag-github.outputs.changed == 'true'
uses: onosproject/.github/.github/workflows/bump-version.yml@main
secrets: inherit