Skip to content

Commit 84a1b35

Browse files
authored
build: add release-please (#8)
Signed-off-by: Peter Balogh <p.balogh.sa@gmail.com>
1 parent 79b4fc8 commit 84a1b35

File tree

4 files changed

+55
-5
lines changed

4 files changed

+55
-5
lines changed

.github/release-config.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"bump-patch-for-minor-pre-major": true,
3+
"separate-pull-requests": true,
4+
"sequential-calls": true,
5+
"include-component-in-tag": true,
6+
"skip-github-release": false,
7+
"packages": {
8+
"integrations/agntcy-agp/agentic-apps": {
9+
"package-name": "agentic-apps",
10+
"release-type": "simple"
11+
}
12+
}
13+
}

.github/release-manifest.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"integrations/agntcy-agp/agentic-apps": "0.0.1"
3+
}

.github/workflows/release.yaml renamed to .github/workflows/release-images.yaml

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
# SPDX-FileCopyrightText: Copyright (c) 2025 Cisco and/or its affiliates.
22
# SPDX-License-Identifier: Apache-2.0
33

4-
name: release
4+
name: release sample agentic application images
55

66
on:
77
push:
88
tags:
9-
- 'v[0-9]+.[0-9]+.[0-9]+'
9+
- 'agentic-apps-v[0-9]+.[0-9]+.[0-9]+'
1010

1111
concurrency:
1212
group: ${{ github.workflow }}-${{ github.ref }}
@@ -17,7 +17,7 @@ jobs:
1717
name: Prepare Build
1818
outputs:
1919
targets: ${{ steps.all-targets.outputs.targets }}
20-
image-tag: ${{ steps.resolve.outputs.image_tag }}
20+
image-tag: ${{ steps.resolve.outputs.version }}
2121
runs-on: ubuntu-latest
2222
steps:
2323
- name: Checkout code
@@ -34,8 +34,14 @@ jobs:
3434
- name: Container image
3535
id: resolve
3636
run: |
37-
# Export vars
38-
echo "image_tag=${GITHUB_REF#refs/*/}" >> $GITHUB_OUTPUT
37+
# strip gentic-apps- prefix from the tag
38+
_target=${GITHUB_REF_NAME#agentic-apps-}
39+
40+
# get version only
41+
version=${_target##*-v}
42+
echo version=${version} >> ${GITHUB_OUTPUT}
43+
44+
echo "Version: $version"
3945
4046
- name: List all targets
4147
id: all-targets
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# SPDX-FileCopyrightText: Copyright (c) 2025 Cisco and/or its affiliates.
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
---
5+
name: ci release-please check
6+
7+
on:
8+
push:
9+
branches:
10+
- main
11+
12+
concurrency:
13+
group: ${{ github.workflow }}-${{ github.ref }}
14+
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
15+
16+
jobs:
17+
release:
18+
runs-on: ubuntu-latest
19+
permissions:
20+
contents: write
21+
pull-requests: write
22+
steps:
23+
- uses: googleapis/release-please-action@v4
24+
id: release-please
25+
with:
26+
token: ${{ secrets.AGNTCY_BUILD_BOT_GH_TOKEN }}
27+
config-file: .github/release-config.json
28+
manifest-file: .github/release-manifest.json

0 commit comments

Comments
 (0)