-
Notifications
You must be signed in to change notification settings - Fork 4
41 lines (39 loc) · 1 KB
/
controller-release.yml
File metadata and controls
41 lines (39 loc) · 1 KB
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
name: Controller Release
on:
push:
tags:
- 'controller/v*'
jobs:
push-docker-images:
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Docker Login
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Release
working-directory: controller
run: make release
env:
TAG: ${{ github.ref_name }}
publish-helm-chart:
needs: push-docker-images
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Publish
working-directory: controller
run: |-
docker run -i \
-v `pwd`:/build -w /build \
-e GITHUB_TOKEN=${{ secrets.GH_TOKEN }} \
--entrypoint ./build/release \
quay.io/helmpack/chart-releaser:v1.4.0