Skip to content

Commit efa7ebf

Browse files
committedAug 27, 2024
updatecli: bump ironbank UBI
1 parent 80e3d3e commit efa7ebf

File tree

4 files changed

+81
-0
lines changed

4 files changed

+81
-0
lines changed
 

‎.ci/updatecli/values.d/ironbank.yml

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
config:
2+
- path: dev-tools/packaging/templates/ironbank
3+
dockerfile: Dockerfile.tmpl
4+
manifest: hardening_manifest.yaml.tmpl
5+
packages: dev-tools/packaging/packages.yml
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
spec:
2+
files:
3+
- "updatecli-compose.yaml"
+59
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
---
2+
name: updatecli-compose
3+
4+
on:
5+
workflow_dispatch:
6+
schedule:
7+
- cron: '0 6 * * *'
8+
9+
permissions:
10+
contents: read
11+
12+
jobs:
13+
compose:
14+
runs-on: ubuntu-latest
15+
permissions:
16+
contents: write
17+
packages: read
18+
pull-requests: write
19+
steps:
20+
- uses: actions/checkout@v4
21+
22+
- uses: docker/login-action@0d4c9c5ea7693da7b068278f7b52bda2a190a446 # v3.2.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: --experimental compose diff
31+
env:
32+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
33+
34+
- uses: elastic/oblt-actions/updatecli/run@v1
35+
with:
36+
command: --experimental compose apply
37+
env:
38+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
39+
40+
- if: ${{ failure() }}
41+
uses: slackapi/slack-github-action@70cd7be8e40a46e8b0eced40b0de447bdb42f68e # v1.26.0
42+
with:
43+
channel-id: '#ingest-notifications'
44+
payload: |
45+
{
46+
"text": "${{ env.SLACK_MESSAGE }}",
47+
"blocks": [
48+
{
49+
"type": "section",
50+
"text": {
51+
"type": "mrkdwn",
52+
"text": "${{ env.SLACK_MESSAGE }}"
53+
}
54+
}
55+
]
56+
}
57+
env:
58+
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
59+
SLACK_MESSAGE: ":traffic_cone: updatecli failed for `${{ github.repository }}@${{ github.ref_name }}`, `@agent-team` please look what's going on <${{ env.JOB_URL }}|here>"

‎updatecli-compose.yaml

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
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.1.0@sha256:327ee971e3a974edc943f7f628145a47b202972f48e45c2054fddcd29f96a50a
6+
values:
7+
- .ci/updatecli/values.d/scm.yml
8+
- .ci/updatecli/values.d/ironbank.yml
9+
10+
- name: Update Updatecli policies
11+
policy: ghcr.io/updatecli/policies/autodiscovery/updatecli:0.4.0@sha256:254367f5b1454fd6032b88b314450cd3b6d5e8d5b6c953eb242a6464105eb869
12+
values:
13+
- .ci/updatecli/values.d/scm.yml
14+
- .ci/updatecli/values.d/updatecli-compose.yml

0 commit comments

Comments
 (0)