1
- # Generated by `make configure`
1
+ # Generated by `make configure`, please do not edit manually.
2
2
" jobs " :
3
- " libs_cert-manager " :
4
- " name " : " Generate libs/cert-manager Jsonnet library and docs"
3
+ " cert-manager " :
4
+ " name " : " Generate cert-manager Jsonnet library and docs"
5
+ " needs " : " terraform"
5
6
" runs-on " : " ubuntu-latest"
6
7
" steps " :
7
8
- " uses " : " actions/checkout@v2"
8
- - " run " : " make run INPUT_DIR=${PWD}/libs/cert-manager"
9
- " libs_cnrm " :
10
- " name " : " Generate libs/cnrm Jsonnet library and docs"
9
+ - " if " : " ${{ github.ref == 'refs/heads/master' && github.repository == 'jsonnet-libs/k8s' }}"
10
+ "run" : |
11
+ mkdir ~/.ssh
12
+ echo "${{ secrets.DEPLOY_KEY }}" > ~/.ssh/id_rsa
13
+ chmod 600 ~/.ssh/id_rsa
14
+ export GEN_COMMIT=1
15
+ - " run " : " make build libs/cert-manager"
16
+ " cnrm " :
17
+ " name " : " Generate cnrm Jsonnet library and docs"
18
+ " needs " : " terraform"
11
19
" runs-on " : " ubuntu-latest"
12
20
" steps " :
13
21
- " uses " : " actions/checkout@v2"
14
- - " run " : " make run INPUT_DIR=${PWD}/libs/cnrm"
15
- " libs_crossplane " :
16
- " name " : " Generate libs/crossplane Jsonnet library and docs"
22
+ - " if " : " ${{ github.ref == 'refs/heads/master' && github.repository == 'jsonnet-libs/k8s' }}"
23
+ "run" : |
24
+ mkdir ~/.ssh
25
+ echo "${{ secrets.DEPLOY_KEY }}" > ~/.ssh/id_rsa
26
+ chmod 600 ~/.ssh/id_rsa
27
+ export GEN_COMMIT=1
28
+ - " run " : " make build libs/cnrm"
29
+ " crossplane " :
30
+ " name " : " Generate crossplane Jsonnet library and docs"
31
+ " needs " : " terraform"
17
32
" runs-on " : " ubuntu-latest"
18
33
" steps " :
19
34
- " uses " : " actions/checkout@v2"
20
- - " run " : " make run INPUT_DIR=${PWD}/libs/crossplane"
21
- " libs_istio " :
22
- " name " : " Generate libs/istio Jsonnet library and docs"
35
+ - " if " : " ${{ github.ref == 'refs/heads/master' && github.repository == 'jsonnet-libs/k8s' }}"
36
+ "run" : |
37
+ mkdir ~/.ssh
38
+ echo "${{ secrets.DEPLOY_KEY }}" > ~/.ssh/id_rsa
39
+ chmod 600 ~/.ssh/id_rsa
40
+ export GEN_COMMIT=1
41
+ - " run " : " make build libs/crossplane"
42
+ " debugging " :
43
+ " name " : " Debugging Github Action values"
44
+ " runs-on " : " ubuntu-latest"
45
+ " steps " :
46
+ - " run " : " echo isMaster? ${{ github.ref == 'refs/heads/master' && github.repository == 'jsonnet-libs/k8s' }}"
47
+ - " run " : " echo isPR? ${{ github.ref != 'refs/heads/master' && github.repository == 'jsonnet-libs/k8s' }}"
48
+ - " run " : " echo ${{ github.repository }}"
49
+ - " run " : " echo ${{ github.ref }}"
50
+ - " run " : " echo ${{ github.event_name }}"
51
+ " istio " :
52
+ " name " : " Generate istio Jsonnet library and docs"
53
+ " needs " : " terraform"
54
+ " runs-on " : " ubuntu-latest"
55
+ " steps " :
56
+ - " uses " : " actions/checkout@v2"
57
+ - " if " : " ${{ github.ref == 'refs/heads/master' && github.repository == 'jsonnet-libs/k8s' }}"
58
+ "run" : |
59
+ mkdir ~/.ssh
60
+ echo "${{ secrets.DEPLOY_KEY }}" > ~/.ssh/id_rsa
61
+ chmod 600 ~/.ssh/id_rsa
62
+ export GEN_COMMIT=1
63
+ - " run " : " make build libs/istio"
64
+ " k8s " :
65
+ " name " : " Generate k8s Jsonnet library and docs"
66
+ " needs " : " terraform"
23
67
" runs-on " : " ubuntu-latest"
24
68
" steps " :
25
69
- " uses " : " actions/checkout@v2"
26
- - " run " : " make run INPUT_DIR=${PWD}/libs/istio"
27
- " libs_k8s-alpha " :
28
- " name " : " Generate libs/k8s-alpha Jsonnet library and docs"
70
+ - " if " : " ${{ github.ref == 'refs/heads/master' && github.repository == 'jsonnet-libs/k8s' }}"
71
+ "run" : |
72
+ mkdir ~/.ssh
73
+ echo "${{ secrets.DEPLOY_KEY }}" > ~/.ssh/id_rsa
74
+ chmod 600 ~/.ssh/id_rsa
75
+ export GEN_COMMIT=1
76
+ - " run " : " make build libs/k8s"
77
+ " terraform " :
78
+ " name " : " create repositories"
29
79
" runs-on " : " ubuntu-latest"
30
80
" steps " :
31
81
- " uses " : " actions/checkout@v2"
32
- - " run " : " make run INPUT_DIR=${PWD}/libs/k8s-alpha"
82
+ - " uses " : " zendesk/setup-jsonnet@v7"
83
+ - " run " : " make tf/main.tf.json"
84
+ - " uses " : " hashicorp/setup-terraform@v1"
85
+ " with " :
86
+ " cli_config_credentials_token " : " ${{ secrets.TF_API_TOKEN }}"
87
+ - " env " :
88
+ " GITHUB_TOKEN " : " ${{ secrets.GITHUB_TOKEN }}"
89
+ " TF_IN_AUTOMATION " : " 1"
90
+ " run " : " terraform init"
91
+ " working-directory " : " tf"
92
+ - " env " :
93
+ " GITHUB_TOKEN " : " ${{ secrets.GITHUB_TOKEN }}"
94
+ " TF_IN_AUTOMATION " : " 1"
95
+ " run " : " terraform validate -no-color"
96
+ " working-directory " : " tf"
97
+ - " env " :
98
+ " GITHUB_TOKEN " : " ${{ secrets.GITHUB_TOKEN }}"
99
+ " TF_IN_AUTOMATION " : " 1"
100
+ " if " : " ${{ github.ref != 'refs/heads/master' && github.repository == 'jsonnet-libs/k8s' }}"
101
+ " run " : " terraform plan -no-color"
102
+ " working-directory " : " tf"
103
+ - " env " :
104
+ " GITHUB_TOKEN " : " ${{ secrets.GITHUB_TOKEN }}"
105
+ " TF_IN_AUTOMATION " : " 1"
106
+ " if " : " ${{ github.ref == 'refs/heads/master' && github.repository == 'jsonnet-libs/k8s' }}"
107
+ " run " : " terraform apply -no-color -auto-approve"
108
+ " working-directory " : " tf"
33
109
" on " :
34
110
- " push"
0 commit comments