Skip to content

Commit d6be78d

Browse files
authored
github-actions: support release helm-chart for a given commit/branch (#7791)
1 parent 43fa783 commit d6be78d

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-manual
3+
4+
on:
5+
workflow_dispatch:
6+
inputs:
7+
branch:
8+
description: 'Branch the commit belongs to'
9+
required: true
10+
type: string
11+
commit:
12+
description: 'Commit to be released'
13+
required: true
14+
type: string
15+
repo-env:
16+
required: true
17+
type: choice
18+
options:
19+
- dev
20+
- prod
21+
22+
permissions:
23+
contents: read
24+
25+
jobs:
26+
trigger-release:
27+
runs-on: ubuntu-latest
28+
# See environment definition in https://github.com/elastic/oblt-infra/blob/main/conf/resources/repos/elastic-agent/01-github.tf
29+
environment: helmcharts
30+
steps:
31+
- uses: elastic/oblt-actions/buildkite/run@v1
32+
with:
33+
branch: ${{ inputs.branch }}
34+
commit: ${{ inputs.commit }}
35+
pipeline: elastic-agent-helm-charts
36+
token: ${{ secrets.BUILDKITE_TOKEN }}
37+
wait-for: true
38+
env-vars: |
39+
SNAPSHOT=false
40+
HELM_REPO_ENV=${{ inputs.repo-env}}
41+
42+
- uses: elastic/oblt-actions/slack/send@v1
43+
if: ${{ failure() }}
44+
with:
45+
bot-token: ${{ secrets.SLACK_BOT_TOKEN }}
46+
channel-id: "#ingest-notifications"
47+
message: "Helm charts for Elastic Agent version ${{ github.ref_name }} have not been published."

0 commit comments

Comments
 (0)