@@ -12,53 +12,64 @@ jobs:
12
12
- name : Checkout
13
13
uses : actions/checkout@v2
14
14
15
- - name : Lint
16
- uses : golangci/golangci-lint-action@v2
17
- with :
18
- version : v1.32.2
19
- args : --timeout=5m
15
+ # - name: Lint
16
+ # uses: golangci/golangci-lint-action@v2
17
+ # with:
18
+ # version: v1.32.2
19
+ # args: --timeout=5m
20
20
21
- - name : Check etcd Cache
22
- id : check -etcd-cache
21
+ - name : Ensure etcd
22
+ id : Ensure -etcd
23
23
uses : actions/cache@v2
24
24
with :
25
25
path : ~/go/bin/etcd
26
26
key : etcd
27
27
28
- - name : Check kube-apiserver Cache
29
- id : check -kube-apiserver-cache
28
+ - name : Ensure kube-apiserver
29
+ id : ensure -kube-apiserver
30
30
uses : actions/cache@v2
31
31
with :
32
32
path : ~/go/bin/kube-apiserver
33
33
key : kube-apiserver
34
34
35
+ - name : Get Kubebuilder Version
36
+ id : get-kubebuilder-version
37
+ run : echo "::set-output name=version::$(make kubebuilder-version-ci)"
38
+ shell : bash
39
+
40
+ - name : Ensure Kubebuilder Metadata
41
+ id : ensure-kubebuilder-metadata
42
+ uses : actions/cache@v2
43
+ with :
44
+ path : ~/.kubebuilder/${{ steps.get-kubebuilder-version.outputs.version }}
45
+ key : kubebuilder
46
+
35
47
- name : Install Kubebuilder
36
- if : ${{ steps.check-etcd-cache.outputs.cache-hit != 'true' || steps.check-kube-apiserver-cache.outputs.cache-hit != 'true' }}
37
48
run : make kubebuilder
38
49
39
50
- name : Run tests
40
51
run : make test
41
52
42
- - name : Figure out if running fork PR
43
- id : fork
44
- run : ' ["${{ secrets.DOCKER_REGISTRY_TOKEN }}" == ""] && echo "::set-output name=is_fork_pr::true" || echo "::set-output name=is_fork_pr::false"'
53
+ # - name: Figure out if running fork PR
54
+ # id: fork
55
+ # run: '["${{ secrets.DOCKER_REGISTRY_TOKEN }}" == ""] && echo "::set-output name=is_fork_pr::true" || echo "::set-output name=is_fork_pr::false"'
45
56
46
- - name : Docker Login
47
- uses : docker/login-action@v1
48
- with :
49
- registry : ${{ secrets.DOCKER_REGISTRY }}
50
- username : ${{ secrets.DOCKER_REGISTRY_USER }}
51
- password : ${{ secrets.DOCKER_REGISTRY_TOKEN }}
52
- if : steps.fork.outputs.is_fork_pr == 'false'
57
+ # - name: Docker Login
58
+ # uses: docker/login-action@v1
59
+ # with:
60
+ # registry: ${{ secrets.DOCKER_REGISTRY }}
61
+ # username: ${{ secrets.DOCKER_REGISTRY_USER }}
62
+ # password: ${{ secrets.DOCKER_REGISTRY_TOKEN }}
63
+ # if: steps.fork.outputs.is_fork_pr == 'false'
53
64
54
- - name : Build Docker image
55
- run : |
56
- export DOCKER_TAG=pr-${GITHUB_HEAD_REF}
57
- make docker-build
65
+ # - name: Build Docker image
66
+ # run: |
67
+ # export DOCKER_TAG=pr-${GITHUB_HEAD_REF}
68
+ # make docker-build
58
69
59
- - name : Push Docker image
60
- run : |
61
- # pull request images are prefixed with 'pr' to prevent them from overriding released images
62
- export DOCKER_TAG=pr-${GITHUB_HEAD_REF}
63
- make docker-push
64
- if : steps.fork.outputs.is_fork_pr == 'false'
70
+ # - name: Push Docker image
71
+ # run: |
72
+ # # pull request images are prefixed with 'pr' to prevent them from overriding released images
73
+ # export DOCKER_TAG=pr-${GITHUB_HEAD_REF}
74
+ # make docker-push
75
+ # if: steps.fork.outputs.is_fork_pr == 'false'
0 commit comments