Skip to content

Commit eb31b16

Browse files
committed
github-actions: post-release event to publish helm-chart (elastic#7303)
1 parent 59e8f60 commit eb31b16

File tree

1 file changed

+47
-0
lines changed

1 file changed

+47
-0
lines changed
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
---
2+
name: release-helm-charts
3+
4+
on:
5+
workflow_dispatch:
6+
release:
7+
types: [published]
8+
9+
permissions:
10+
contents: read
11+
12+
jobs:
13+
trigger-release:
14+
runs-on: ubuntu-latest
15+
if: ${{ github.event.action == 'published' && !startsWith(github.ref_name, '8.16') && !startsWith(github.ref_name, '8.17') }}
16+
steps:
17+
- uses: elastic/oblt-actions/buildkite/run@v1
18+
with:
19+
branch: ${{ github.ref_name }}
20+
pipeline: elastic-agent-helm-charts
21+
token: ${{ secrets.BUILDKITE_TOKEN }}
22+
wait-for: true
23+
env-vars: |
24+
SNAPSHOT="false"
25+
HELM_REPO_ENV="prod"
26+
27+
- uses: elastic/oblt-actions/slack/send@v1
28+
if: ${{ failure() }}
29+
with:
30+
bot-token: ${{ secrets.SLACK_BOT_TOKEN }}
31+
channel-id: "#ingest-notifications"
32+
message: "Helm charts for Elastic Agent version ${{ github.ref_name }} have not been published."
33+
34+
# NOTE: this will help with testing the workflow
35+
trigger-workflow:
36+
runs-on: ubuntu-latest
37+
if: github.event.action != 'published'
38+
steps:
39+
- uses: elastic/oblt-actions/buildkite/run@v1
40+
with:
41+
branch: ${{ github.ref_name }}
42+
pipeline: elastic-agent-helm-charts
43+
token: ${{ secrets.BUILDKITE_TOKEN }}
44+
wait-for: true
45+
env-vars: |
46+
SNAPSHOT="true"
47+
HELM_REPO_ENV="dev"

0 commit comments

Comments
 (0)