Skip to content

Commit 6b32a89

Browse files
authored
ci(updatecli): add policies autodiscovery, bump updatecli version and specs/jsons policies (#2168)
1 parent 7babc3b commit 6b32a89

File tree

4 files changed

+24
-7
lines changed

4 files changed

+24
-7
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-python
55
branch: main
6-
7-
signedcommit: true
6+
commitusingapi: true
7+
# begin update-compose policy values
8+
user: obltmachine
9+
email: obltmachine@users.noreply.github.com
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: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,23 @@
1+
# Config file for `updatecli compose ...`.
2+
# https://www.updatecli.io/docs/core/compose/
13
policies:
24
- name: Handle apm-data server specs
3-
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
46
values:
57
- .ci/updatecli/values.d/scm.yml
68
- .ci/updatecli/values.d/apm-data-spec.yml
7-
89
- name: Handle apm gherkin specs
9-
policy: ghcr.io/elastic/oblt-updatecli-policies/apm/apm-gherkin:0.2.0@sha256:26a30ad2b98a6e4cb17fb88a28fa3277ced8ca862d6388943afaafbf8ee96e7d
10+
policy: ghcr.io/elastic/oblt-updatecli-policies/apm/apm-gherkin:0.6.0@sha256:dbaf4d855c5c212c3b5a8d2cc98c243a2b769ac347198ae8814393a1a0576587
1011
values:
1112
- .ci/updatecli/values.d/scm.yml
1213
- .ci/updatecli/values.d/apm-gherkin.yml
13-
1414
- name: Handle apm json specs
15-
policy: ghcr.io/elastic/oblt-updatecli-policies/apm/apm-json-specs:0.2.0@sha256:969a6d21eabd6ebea66cb29b35294a273d6dbc0f7da78589c416aedf08728e78
15+
policy: ghcr.io/elastic/oblt-updatecli-policies/apm/apm-json-specs:0.6.0@sha256:e5a74c159ceed02fd20515ea76fa25ff81e3ccf977e74e636f9973db86aa52a5
1616
values:
1717
- .ci/updatecli/values.d/scm.yml
1818
- .ci/updatecli/values.d/apm-json-specs.yml
19+
- name: Update Updatecli policies
20+
policy: ghcr.io/updatecli/policies/autodiscovery/updatecli:0.8.0@sha256:99e9e61b501575c2c176c39f2275998d198b590a3f6b1fe829f7315f8d457e7f
21+
values:
22+
- .ci/updatecli/values.d/scm.yml
23+
- .ci/updatecli/values.d/update-compose.yml

0 commit comments

Comments
 (0)