Skip to content

Commit 70debfb

Browse files
authored
ci(updatecli): add policies autodiscovery, bump updatecli version and specs/jsons policies (#4338)
1 parent 09aa9c1 commit 70debfb

File tree

4 files changed

+22
-4
lines changed

4 files changed

+22
-4
lines changed

.ci/updatecli/values.d/scm.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,8 @@ scm:
33
owner: elastic
44
repository: apm-agent-nodejs
55
branch: main
6-
7-
signedcommit: true
6+
commitusingapi: true
7+
# begin update-compose policy values
8+
user: obltmachine
9+
10+
# end update-compose policy values
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
spec:
2+
files:
3+
- "updatecli-compose.yaml"

.github/workflows/updatecli.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,18 @@ jobs:
3838
- uses: elastic/oblt-actions/updatecli/run@v1
3939
with:
4040
command: --experimental compose diff
41+
# TODO: update to the latest version so the policies can work as expected.
42+
# latest changes in the policies require to use the dependson feature.
43+
version: "v0.88.0"
4144
env:
4245
GITHUB_TOKEN: ${{ steps.get_token.outputs.token }}
4346

4447
- uses: elastic/oblt-actions/updatecli/run@v1
4548
with:
4649
command: --experimental compose apply
50+
# TODO: update to the latest version so the policies can work as expected.
51+
# latest changes in the policies require to use the dependson feature.
52+
version: "v0.88.0"
4753
env:
4854
GITHUB_TOKEN: ${{ steps.get_token.outputs.token }}
4955

updatecli-compose.yaml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,19 @@
22
# https://www.updatecli.io/docs/core/compose/
33
policies:
44
- name: Handle apm-data server specs
5-
policy: ghcr.io/elastic/oblt-updatecli-policies/apm/apm-data-spec:0.2.0@sha256:7069c0773d44a74c4c8103b4d9957b468f66081ee9d677238072fe11c4d2197c
5+
policy: ghcr.io/elastic/oblt-updatecli-policies/apm/apm-data-spec:0.6.0@sha256:c0bbdec23541bed38df1342c95aeb601530a113db1ff11715c1c7616ed5e9e8b
66
values:
77
- .ci/updatecli/values.d/scm.yml
88
- .ci/updatecli/values.d/apm-data-spec.yml
99

1010
- name: Handle apm json specs
11-
policy: ghcr.io/elastic/oblt-updatecli-policies/apm/apm-json-specs:0.2.0@sha256:969a6d21eabd6ebea66cb29b35294a273d6dbc0f7da78589c416aedf08728e78
11+
policy: ghcr.io/elastic/oblt-updatecli-policies/apm/apm-json-specs:0.6.0@sha256:e5a74c159ceed02fd20515ea76fa25ff81e3ccf977e74e636f9973db86aa52a5
1212
values:
1313
- .ci/updatecli/values.d/scm.yml
1414
- .ci/updatecli/values.d/apm-json-specs.yml
15+
16+
- name: Update Updatecli policies
17+
policy: ghcr.io/updatecli/policies/autodiscovery/updatecli:0.8.0@sha256:99e9e61b501575c2c176c39f2275998d198b590a3f6b1fe829f7315f8d457e7f
18+
values:
19+
- .ci/updatecli/values.d/scm.yml
20+
- .ci/updatecli/values.d/update-compose.yml

0 commit comments

Comments
 (0)