From 1b50a000a1f7aa72e6c3cc9ed0a80dab73a4ab2a Mon Sep 17 00:00:00 2001 From: Victor Martinez Date: Tue, 3 Dec 2024 13:42:54 +0100 Subject: [PATCH 1/2] ci: pin updatecli version using .tool-versions and autobump --- .github/workflows/updatecli.yml | 8 ++------ .tool-versions | 1 + update-compose.yaml | 5 +++++ 3 files changed, 8 insertions(+), 6 deletions(-) create mode 100644 .tool-versions diff --git a/.github/workflows/updatecli.yml b/.github/workflows/updatecli.yml index 27a7e8378..9b169a707 100644 --- a/.github/workflows/updatecli.yml +++ b/.github/workflows/updatecli.yml @@ -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 }} diff --git a/.tool-versions b/.tool-versions new file mode 100644 index 000000000..f00738d3d --- /dev/null +++ b/.tool-versions @@ -0,0 +1 @@ +updatecli v0.87.0 \ No newline at end of file diff --git a/update-compose.yaml b/update-compose.yaml index aecdf5d75..aeae96a1b 100644 --- a/update-compose.yaml +++ b/update-compose.yaml @@ -24,3 +24,8 @@ 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 From 084a7ed174e7b0798c5f907e9cfc3f46d5d15793 Mon Sep 17 00:00:00 2001 From: Victor Martinez Date: Tue, 3 Dec 2024 13:45:11 +0100 Subject: [PATCH 2/2] bump --- .tool-versions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.tool-versions b/.tool-versions index f00738d3d..3d067142f 100644 --- a/.tool-versions +++ b/.tool-versions @@ -1 +1 @@ -updatecli v0.87.0 \ No newline at end of file +updatecli v0.88.0 \ No newline at end of file