File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 66 - ' v*.*.*'
77
88jobs :
9- release :
10- name : Build, Push and Create Release
9+ helm-chart :
1110 runs-on : ubuntu-latest
1211 permissions :
13- contents : write
12+ contents : read
1413 packages : write
1514
1615 steps :
2524 with :
2625 github_token : ${{ secrets.GITHUB_TOKEN }}
2726
28- - name : ' Create Install YAML'
29- env :
30- IMAGE_TAG : ${{ github.ref_name }}
31- run : |
32- # Extract version without 'v' prefix (e.g., v1.0.0 -> 1.0.0)
33- VERSION=${IMAGE_TAG#v}
34- IMAGE_NAME="ghcr.io/agentic-layer/testbench/testworkflows"
35-
36- # Build the install.yaml and replace the image tag
37- kustomize build deploy/base | \
38- sed "s|${IMAGE_NAME}:latest|${IMAGE_NAME}:${VERSION}|g" > install.yaml
39-
40- echo "Replaced image tag: ${IMAGE_NAME}:latest -> ${IMAGE_NAME}:${VERSION}"
41-
42- - name : ' Create Release'
43- env :
44- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
45- tag : ${{ github.ref_name }}
46- run : |
47- gh release create "$tag" \
48- --repo="$GITHUB_REPOSITORY" \
49- --title="${tag#v}" \
50- --generate-notes \
51- install.yaml
52-
53- helm-chart :
54- runs-on : ubuntu-latest
55- permissions :
56- contents : read
57- packages : write
58-
59- steps :
60- - name : Checkout
61- uses : ' actions/checkout@v6'
62- with :
63- fetch-depth : 0
64-
6527 - name : Install Helm
6628 uses : azure/setup-helm@v4
6729 with :
You can’t perform that action at this time.
0 commit comments