Skip to content

Commit 30c1119

Browse files
authored
use pinned version for the updatecli and support auto-bump (#73)
1 parent 6ab0fce commit 30c1119

File tree

6 files changed

+24
-2
lines changed

6 files changed

+24
-2
lines changed

.github/workflows/e2e.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,13 @@ jobs:
3737
- uses: elastic/oblt-actions/updatecli/run@v1
3838
with:
3939
command: --experimental compose diff
40+
version-file: .tool-versions
4041
env:
4142
GITHUB_TOKEN: ${{ steps.get_token.outputs.token }}
4243

4344
- uses: elastic/oblt-actions/updatecli/run@v1
4445
with:
4546
command: --experimental compose apply
47+
version-file: .tool-versions
4648
env:
4749
GITHUB_TOKEN: ${{ steps.get_token.outputs.token }}

.github/workflows/release.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@ jobs:
2020
uses: actions/checkout@v4
2121

2222
- name: Setup updatecli
23-
uses: updatecli/updatecli-action@v2
23+
uses: elastic/oblt-actions/updatecli/install@v1
24+
with:
25+
version-file: .tool-versions
2426

2527
- name: Log in to the Container registry
2628
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567

.github/workflows/validate.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@ jobs:
2020
uses: actions/checkout@v4
2121

2222
- name: Setup updatecli
23-
uses: updatecli/updatecli-action@v2
23+
uses: elastic/oblt-actions/updatecli/install@v1
24+
with:
25+
version-file: .tool-versions
2426

2527
- name: Setup releasepost
2628
uses: updatecli/releasepost-action@108e7be5e43d1d1dc1177389a318d3630f6b01f1 # v0.4.0

.tool-versions

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
updatecli v0.88.0

updatecli-compose.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,3 +38,8 @@ policies:
3838
policy: ghcr.io/elastic/oblt-updatecli-policies/updatecli/version:latest
3939
values:
4040
- updatecli/policies/updatecli/version/testdata/values.yaml
41+
42+
- name: Handle updatecli update
43+
policy: ghcr.io/elastic/oblt-updatecli-policies/updatecli/version:latest
44+
values:
45+
- updatecli/values.d/scm.yaml

updatecli/values.d/scm.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
scm:
2+
enabled: true
3+
owner: elastic
4+
repository: oblt-updatecli-policies
5+
branch: main
6+
commitusingapi: true
7+
# begin update-compose policy values
8+
user: obltmachine
9+
10+
# end update-compose policy values

0 commit comments

Comments
 (0)