-
Notifications
You must be signed in to change notification settings - Fork 87
55 lines (46 loc) · 1.06 KB
/
ci.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
name: CI
on:
pull_request:
push:
tags:
- '*'
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set up Go ^1.15
uses: actions/setup-go@v2
with:
go-version: ^1.19
- name: Clean Helm Tags
run: git tag -d $(git tag -l "cert-exporter*")
- name: Build
run: make build
- name: Test certificate and kubeconfig
run: |
cd test/files
./test.sh
- name: Test cert-manager
run: |
cd test/cert-manager
./test.sh
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
set -euxo pipefail
if [[ $GITHUB_REF == refs/tags/v* ]]; then
make release
else
make release-snapshot
fi
- name: Upload release artifacts
uses: actions/upload-artifact@v2
with:
name: release-artifacts
path: |
dist/
!dist/*/*