-
Notifications
You must be signed in to change notification settings - Fork 2
42 lines (39 loc) · 1.34 KB
/
main.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
name: CI
on:
push:
paths:
- '**'
- '!**.md'
- '!doc/**'
- '!**.png'
jobs:
create-release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Get tag name, if specified
run: if grep -q "/tags/" <<< "${GITHUB_REF}"; then echo ::set-output name=tag::${GITHUB_REF:10}; fi
id: get_tag
- name: Get branch name
run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
id: get_branch
- name: Get branch name
run: helm package . -d manifests/
- name: Create a release on Channel associated with the branch
uses: docker://replicated/vendor-cli:latest
with:
args: release create --auto -y
env:
REPLICATED_API_TOKEN: ${{ secrets.REPLICATED_API_TOKEN }}
REPLICATED_APP: ${{ secrets.REPLICATED_APP }}
GITHUB_BRANCH_NAME: ${{ steps.get_branch.outputs.branch }}
GITHUB_TAG_NAME: ${{ steps.get_tag.outputs.tag }}
- name: Release Kubernetes Installer
uses: docker://replicated/vendor-cli:latest
with:
args: installer create --auto -y
env:
REPLICATED_API_TOKEN: ${{ secrets.REPLICATED_API_TOKEN }}
REPLICATED_APP: ${{ secrets.REPLICATED_APP }}
GITHUB_BRANCH_NAME: ${{ steps.get_branch.outputs.branch }}
GITHUB_TAG_NAME: ${{ steps.get_tag.outputs.tag }}