Skip to content

Commit 97b4adc

Browse files
authored
helm chart update in GHA (#83)
1 parent 9b248aa commit 97b4adc

7 files changed

Lines changed: 103 additions & 1 deletion

File tree

.github/workflows/auto-dev-version.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,5 @@ jobs:
1717
uses: actions/checkout@v4
1818
- name: Run Version Update Action
1919
uses: open-edge-platform/orch-ci/dev-version-update@main
20+
with:
21+
gh_token: ${{ secrets.SYS_ORCH_GITHUB }}

apps/admin/.update-version.sh

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
#!/usr/bin/env bash
2+
3+
# Copyright 2025 Intel Corp.
4+
# SPDX-License-Identifier: Apache-2.0
5+
6+
if [ -n "$1" ]
7+
then
8+
new_version="$1"
9+
else
10+
echo "ERROR: missing required version parameter"
11+
exit 1
12+
fi
13+
14+
# Check if VERSIONFILE is set and not empty
15+
if [ -z "${VERSIONFILE}" ]; then
16+
echo "ERROR: VERSIONFILE environment variable is not set or empty"
17+
exit 1
18+
fi
19+
20+
bash ./tools/set-version.sh "admin" "$new_version"

apps/app-orch/.update-version.sh

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
#!/usr/bin/env bash
2+
3+
# Copyright 2025 Intel Corp.
4+
# SPDX-License-Identifier: Apache-2.0
5+
6+
if [ -n "$1" ]
7+
then
8+
new_version="$1"
9+
else
10+
echo "ERROR: missing required version parameter"
11+
exit 1
12+
fi
13+
14+
# Check if VERSIONFILE is set and not empty
15+
if [ -z "${VERSIONFILE}" ]; then
16+
echo "ERROR: VERSIONFILE environment variable is not set or empty"
17+
exit 1
18+
fi
19+
20+
bash ./tools/set-version.sh "app-orch" "$new_version"
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
#!/usr/bin/env bash
2+
3+
# Copyright 2025 Intel Corp.
4+
# SPDX-License-Identifier: Apache-2.0
5+
6+
if [ -n "$1" ]
7+
then
8+
new_version="$1"
9+
else
10+
echo "ERROR: missing required version parameter"
11+
exit 1
12+
fi
13+
14+
# Check if VERSIONFILE is set and not empty
15+
if [ -z "${VERSIONFILE}" ]; then
16+
echo "ERROR: VERSIONFILE environment variable is not set or empty"
17+
exit 1
18+
fi
19+
20+
bash ./tools/set-version.sh "cluster-orch" "$new_version"

apps/infra/.update-version.sh

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
#!/usr/bin/env bash
2+
3+
# Copyright 2025 Intel Corp.
4+
# SPDX-License-Identifier: Apache-2.0
5+
6+
if [ -n "$1" ]
7+
then
8+
new_version="$1"
9+
else
10+
echo "ERROR: missing required version parameter"
11+
exit 1
12+
fi
13+
14+
# Check if VERSIONFILE is set and not empty
15+
if [ -z "${VERSIONFILE}" ]; then
16+
echo "ERROR: VERSIONFILE environment variable is not set or empty"
17+
exit 1
18+
fi
19+
20+
bash ./tools/set-version.sh "infra" "$new_version"

apps/root/.update-version.sh

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
#!/usr/bin/env bash
2+
3+
# Copyright 2025 Intel Corp.
4+
# SPDX-License-Identifier: Apache-2.0
5+
6+
if [ -n "$1" ]
7+
then
8+
new_version="$1"
9+
else
10+
echo "ERROR: missing required version parameter"
11+
exit 1
12+
fi
13+
14+
# Check if VERSIONFILE is set and not empty
15+
if [ -z "${VERSIONFILE}" ]; then
16+
echo "ERROR: VERSIONFILE environment variable is not set or empty"
17+
exit 1
18+
fi
19+
20+
bash ./tools/set-version.sh "root" "$new_version"

tools/set-version.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,5 @@ echo "$new_version" > "apps/$app/VERSION"
2626
make -C "apps/$app" apply-version
2727
helm dep update apps/$app/deploy/
2828

29-
echo -e "${CYAN}Version has been update to $new_version in $app ${NC}"
29+
echo -e "${CYAN}Version has been updated to $new_version in $app ${NC}"
3030
echo "Make sure all APIs point to released versions with 'make check-valid-api'"

0 commit comments

Comments
 (0)