-
Notifications
You must be signed in to change notification settings - Fork 3
50 lines (36 loc) · 1.01 KB
/
go.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
name: CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
env:
REPO: ghcr.io
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.17
- name: Build
run: make build
# - name: Test
# run: make test
- name: prepare for deploy check
uses: yokawasa/action-setup-kube-tools@v0.7.1
with:
kustomize: '4.5.5'
kube-score: '1.14.0'
- name: deploy check
run: kustomize build manifests/dev | kube-score score - --exit-one-on-warning --ignore-test statefulset-has-poddisruptionbudget --ignore-test pod-networkpolicy --ignore-test statefulset-has-host-podantiaffinity
- name: Build image
run: make build-image
- name: Log in to registry
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u $ --password-stdin
- name: Push image
run: make push-image