Skip to content

Commit

Permalink
ci: pin updatecli version using .tool-versions and autobump (#2170)
Browse files Browse the repository at this point in the history
  • Loading branch information
v1v authored Dec 4, 2024
1 parent 6b32a89 commit 2b38796
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
8 changes: 2 additions & 6 deletions .github/workflows/updatecli.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,18 +38,14 @@ jobs:
- uses: elastic/oblt-actions/updatecli/run@v1
with:
command: --experimental compose diff
# TODO: update to the latest version so the policies can work as expected.
# latest changes in the policies require to use the dependson feature.
version: "v0.88.0"
version-file: .tool-versions
env:
GITHUB_TOKEN: ${{ steps.get_token.outputs.token }}

- uses: elastic/oblt-actions/updatecli/run@v1
with:
command: --experimental compose apply
# TODO: update to the latest version so the policies can work as expected.
# latest changes in the policies require to use the dependson feature.
version: "v0.88.0"
version-file: .tool-versions
env:
GITHUB_TOKEN: ${{ steps.get_token.outputs.token }}

Expand Down
1 change: 1 addition & 0 deletions .tool-versions
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
updatecli v0.88.0
6 changes: 5 additions & 1 deletion updatecli-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,8 @@ policies:
policy: ghcr.io/updatecli/policies/autodiscovery/updatecli:0.8.0@sha256:99e9e61b501575c2c176c39f2275998d198b590a3f6b1fe829f7315f8d457e7f
values:
- .ci/updatecli/values.d/scm.yml
- .ci/updatecli/values.d/update-compose.yml
- .ci/updatecli/values.d/update-compose.yml
- name: Update Updatecli version
policy: ghcr.io/elastic/oblt-updatecli-policies/updatecli/version:0.2.0@sha256:013a37ddcdb627c46e7cba6fb9d1d7bc144584fa9063843ae7ee0f6ef26b4bea
values:
- .ci/updatecli/values.d/scm.yml

0 comments on commit 2b38796

Please sign in to comment.