-
Notifications
You must be signed in to change notification settings - Fork 297
51 lines (43 loc) · 1.42 KB
/
helmchart.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
name: Build and Push Helm Chart
on:
push:
branches:
- '*'
jobs:
build-and-push:
if: ${{ github.event_name != 'pull_request' }}
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Setup Helm
uses: azure/setup-helm@v3
with:
version: v3.15.0
- name: Get branch name
id: branch
run: echo "BRANCH_NAME=${GITHUB_REF#refs/heads/}" >> $GITHUB_ENV
- name: Determine tag
id: determine-tag
run: |
if [[ "${GITHUB_REF}" == refs/tags/* ]]; then
SEM_VERSION="${GITHUB_REF#refs/tags/}"
elif [[ "${GITHUB_REF}" == refs/pull/* ]]; then
SEM_VERSION="0.0.0-pr${{ github.event.pull_request.number }}"
else
SEM_VERSION="0.0.0-${GITHUB_REF#refs/heads/}"
fi
echo "SEM_VERSION=${SEM_VERSION}" >> "$GITHUB_ENV"
- name: Update chart dependencies
run: helm dependency update helm/artemis
- name: Chart | Push
uses: appany/helm-oci-chart-releaser@v0.3.0
with:
name: artemis
repository: ${{ github.repository_owner }}/helm
tag: ${{ env.SEM_VERSION }}
path: helm/artemis
registry: ghcr.io
registry_username: ${{ github.repository_owner }}
registry_password: ${{ secrets.GITHUB_TOKEN }}
update_dependencies: 'true'