Skip to content

Commit 4a1c7bf

Browse files
authored
updatecli: manage UBI and updatecli versions (#18427)
1 parent f05d515 commit 4a1c7bf

File tree

5 files changed

+83
-0
lines changed

5 files changed

+83
-0
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
config:
2+
- path: docker/templates
3+
dockerfile: IronbankDockerfile.erb
4+
manifest: hardening_manifest.yaml.erb
5+
6+
pull_request:
7+
labels:
8+
- dependencies
9+
- backport-active-all

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
11
scm:
22
owner: elastic
33
repository: logstash
4+
branch: main
5+
commitusingapi: true
6+
# begin updatecli-compose policy values
7+
user: 'github-actions[bot]'
8+
email: '41898282+github-actions[bot]@users.noreply.github.com'
9+
# end updatecli-compose policy values
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
path: .updatecli-version
2+
3+
pull_request:
4+
labels:
5+
- dependencies
6+
- backport-skip
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
---
2+
name: update-compose
3+
4+
on:
5+
workflow_dispatch:
6+
schedule:
7+
- cron: '0 6 * * 1'
8+
9+
permissions:
10+
contents: read
11+
12+
jobs:
13+
compose:
14+
runs-on: ubuntu-latest
15+
permissions:
16+
contents: write
17+
pull-requests: write
18+
packages: read
19+
steps:
20+
- uses: actions/checkout@v5
21+
22+
- uses: docker/login-action@5e57cd118135c172c3672efd75eb46360885c0ef # v3.6.0
23+
with:
24+
registry: ghcr.io
25+
username: ${{ github.actor }}
26+
password: ${{ secrets.GITHUB_TOKEN }}
27+
28+
- uses: elastic/oblt-actions/updatecli/run@v1
29+
with:
30+
command: compose diff
31+
env:
32+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
33+
34+
- uses: elastic/oblt-actions/updatecli/run@v1
35+
with:
36+
command: compose apply
37+
env:
38+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
39+
40+
- if: ${{ failure() }}
41+
uses: elastic/oblt-actions/slack/send@v1
42+
with:
43+
channel-id: '#logstash-build'
44+
message: ":traffic_cone: updatecli failed for `${{ github.repository }}@${{ github.ref_name }}`, @robots-ci please look what's going on <https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}|here>"
45+
bot-token: ${{ secrets.SLACK_BOT_TOKEN }}

updatecli-compose.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Config file for `updatecli compose ...`.
2+
# https://www.updatecli.io/docs/core/compose/
3+
policies:
4+
- name: Handle ironbank bumps
5+
policy: ghcr.io/elastic/oblt-updatecli-policies/ironbank/templates:0.5.3@sha256:1d5b2f8ca1c141ebe0368d39ec1cdf8bc32662795a21416907eb02b8bf40d890
6+
values:
7+
- .ci/updatecli/values.d/scm.yml
8+
- .ci/updatecli/values.d/ironbank.yml
9+
- name: Handle updatecli bumps
10+
policy: ghcr.io/elastic/oblt-updatecli-policies/updatecli/version:0.2.0@sha256:013a37ddcdb627c46e7cba6fb9d1d7bc144584fa9063843ae7ee0f6ef26b4bea
11+
values:
12+
- .ci/updatecli/values.d/scm.yml
13+
- .ci/updatecli/values.d/updatecli.yml
14+
- name: Update Updatecli policies
15+
policy: ghcr.io/updatecli/policies/autodiscovery/updatecli:0.9.1@sha256:5bbca67a9e31bf5432d5cae1452b9fc770014151ddd856f367ccb9ba46f6f8bb
16+
values:
17+
- .ci/updatecli/values.d/scm.yml

0 commit comments

Comments
 (0)