ci(bump automation): bump ubi9 for ironbank (#191660)

This commit is contained in:
Victor Martinez 2024-10-10 22:00:38 +02:00 committed by GitHub
parent 3ec190823f
commit eefabb0f53
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 71 additions and 0 deletions

View file

@ -0,0 +1,2 @@
config:
- path: src/dev/build/tasks/os_packages/docker_generator/templates/ironbank

11
.github/updatecli/values.d/scm.yml vendored Normal file
View file

@ -0,0 +1,11 @@
scm:
enabled: true
owner: elastic
repository: kibana
branch: main
commitusingapi: true
# begin updatecli-compose policy values
user: kibanamachine
email: 42973632+kibanamachine@users.noreply.github.com
# end updatecli-compose policy values

View file

@ -0,0 +1,3 @@
spec:
files:
- "updatecli-compose.yaml"

38
.github/workflows/updatecli-compose.yml vendored Normal file
View file

@ -0,0 +1,38 @@
---
name: updatecli-compose
on:
workflow_dispatch:
schedule:
- cron: '0 6 * * *'
permissions:
contents: read
jobs:
compose:
runs-on: ubuntu-latest
permissions:
contents: write
packages: read
pull-requests: write
steps:
- uses: actions/checkout@v4
- uses: docker/login-action@0d4c9c5ea7693da7b068278f7b52bda2a190a446 # v3.2.0
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- uses: elastic/oblt-actions/updatecli/run@v1
with:
command: --experimental compose diff
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: elastic/oblt-actions/updatecli/run@v1
with:
command: --experimental compose apply
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

View file

@ -87,6 +87,9 @@ export const IGNORE_FILE_GLOBS = [
// Support for including http-client.env.json configurations
'**/http-client.env.json',
// updatecli configuration for driving the UBI/Ironbank image updates
'updatecli-compose.yaml',
];
/**

14
updatecli-compose.yaml Normal file
View file

@ -0,0 +1,14 @@
# Config file for `updatecli compose ...`.
# https://www.updatecli.io/docs/core/compose/
policies:
- name: Handle ironbank bumps
policy: ghcr.io/elastic/oblt-updatecli-policies/ironbank/templates:0.3.0@sha256:b0c841d8fb294e6b58359462afbc83070dca375ac5dd0c5216c8926872a98bb1
values:
- .github/updatecli/values.d/scm.yml
- .github/updatecli/values.d/ironbank.yml
- name: Update Updatecli policies
policy: ghcr.io/updatecli/policies/autodiscovery/updatecli:0.4.0@sha256:254367f5b1454fd6032b88b314450cd3b6d5e8d5b6c953eb242a6464105eb869
values:
- .github/updatecli/values.d/scm.yml
- .github/updatecli/values.d/updatecli-compose.yml