forked from AaronDewes/ingress
-
Notifications
You must be signed in to change notification settings - Fork 0
64 lines (54 loc) · 1.69 KB
/
release-controller.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
59
60
61
62
63
64
name: Release Controller
on:
push:
tags:
- 'v*'
jobs:
goreleaser:
runs-on: ubuntu-latest
name: GoReleaser release
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.20'
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Login to DockerHub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USER }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v4
with:
distribution: goreleaser
version: latest
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.PRIVATE_TOKEN }}
# bump-charts:
# runs-on: ubuntu-latest
# steps:
# - name: Checkout
# uses: actions/checkout@v3
# - name: Set appVersion
# uses: mikefarah/yq@v4
# with:
# cmd: yq -i '.appVersion = "${{ github.ref_name }}"' 'charts/caddy-ingress-controller/Chart.yaml'
# - name: Set image tag
# uses: mikefarah/yq@v4
# with:
# cmd: yq -i '.image.tag = "${{ github.ref_name }}"' 'charts/caddy-ingress-controller/values.yaml'
# - name: Create Pull Request
# uses: peter-evans/create-pull-request@v4
# with:
# branch: update-charts
# commit-message: Update caddy-ingress charts to ${{ github.ref_name }}
# title: Update caddy-ingress charts to ${{ github.ref_name }}
# body: |
# This is an automated pull request to update charts.