-
Notifications
You must be signed in to change notification settings - Fork 1
58 lines (48 loc) · 1.48 KB
/
helm-chart-release-tag.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
name: Release Charts Tag
on:
workflow_dispatch:
inputs:
tag:
description: 'Tag to release'
required: true
default: ''
chart_dir:
description: 'Chart directory to release'
required: true
default: 'scalable-selenium-grid/target/classes'
jobs:
release:
runs-on: ubuntu-latest
permissions: write-all
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Checkout tag
run: git checkout ${{ github.event.inputs.tag }}
- name: Configure Git
run: |
git config user.name "$GITHUB_ACTOR"
git config user.email "[email protected]"
- name: Set up JDK 11
uses: actions/setup-java@v2
with:
java-version: '11'
distribution: 'temurin'
cache: maven
- name: Build with Maven
run: mvn clean install
- name: Install Helm
uses: azure/setup-helm@v3
- name: Helm Package
run: helm package ${{ github.event.inputs.chart_dir }}/scalable-selenium-grid
- name: Copy Package Release
run: mkdir -p .cr-release-packages; cp scalable-selenium-grid*.tgz .cr-release-packages
- name: Run chart-releaser
uses: helm/[email protected]
with:
skip_packaging: true
charts_dir: ${{ github.event.inputs.chart_dir }}
env:
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"