-
Notifications
You must be signed in to change notification settings - Fork 107
43 lines (36 loc) · 1.04 KB
/
release.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
name: Release
on:
push:
tags:
- '*'
jobs:
build:
name: Build and release image
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: docker login -u "${{ secrets.QUAY_IO_USER }}" -p "${{ secrets.QUAY_IO_TOKEN }}" quay.io
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: "1.22"
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
with:
version: "0.181.1"
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.RELEASE_USER_TOKEN }}
bump-version:
name: Bump app version in Helm chart
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Bump chart version
uses: mittwald/bump-app-version-action@v1
with:
mode: 'publish'
chartYaml: './deploy/helm-chart/kubernetes-replicator/Chart.yaml'
env:
GITHUB_TOKEN: "${{ secrets.RELEASE_USER_TOKEN }}"
HELM_REPO_PASSWORD: "${{ secrets.HELM_REPO_PASSWORD }}"