From 1f1c02d8bb1fa1f2f3bf961cc7351393d10f235c Mon Sep 17 00:00:00 2001 From: Victor Martinez Date: Wed, 4 Dec 2024 18:34:42 +0100 Subject: [PATCH] ci: use tool-versions for updatecli --- .github/workflows/updatecli.yml | 2 ++ .tool-versions | 1 + updatecli-compose.yaml | 4 ++++ 3 files changed, 7 insertions(+) create mode 100644 .tool-versions diff --git a/.github/workflows/updatecli.yml b/.github/workflows/updatecli.yml index c8f4b4fb..739fd40f 100644 --- a/.github/workflows/updatecli.yml +++ b/.github/workflows/updatecli.yml @@ -38,12 +38,14 @@ jobs: - uses: elastic/oblt-actions/updatecli/run@v1 with: command: --experimental compose diff + version-file: .tool-versions env: GITHUB_TOKEN: ${{ steps.get_token.outputs.token }} - uses: elastic/oblt-actions/updatecli/run@v1 with: command: --experimental compose apply + version-file: .tool-versions env: GITHUB_TOKEN: ${{ steps.get_token.outputs.token }} diff --git a/.tool-versions b/.tool-versions new file mode 100644 index 00000000..3d067142 --- /dev/null +++ b/.tool-versions @@ -0,0 +1 @@ +updatecli v0.88.0 \ No newline at end of file diff --git a/updatecli-compose.yaml b/updatecli-compose.yaml index ee358b4f..2574eac7 100644 --- a/updatecli-compose.yaml +++ b/updatecli-compose.yaml @@ -11,3 +11,7 @@ policies: values: - .ci/updatecli/values.d/scm.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 \ No newline at end of file