File tree Expand file tree Collapse file tree 2 files changed +7
-10
lines changed Expand file tree Collapse file tree 2 files changed +7
-10
lines changed Original file line number Diff line number Diff line change 35
35
with :
36
36
target_commitish : ${{ github.event.pull_request.merge_commit_sha }}
37
37
tag_name : ${{ env.RELEASE_VERSION }}
38
- name : ${{ env.RELEASE_VERSION }}
38
+ name : v ${{ env.RELEASE_VERSION }}
39
39
draft : false
40
40
prerelease : false
41
41
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ fmt: $(modules:%=%/fmt)
13
13
@cd $* && terraform fmt
14
14
15
15
init :
16
- @terraform init
16
+ @terraform init -input=false
17
17
18
18
test : init $(modules:%=%/fmt_check )
19
19
@terraform fmt -check
@@ -23,19 +23,16 @@ test: init $(modules:%=%/fmt_check)
23
23
@cd $* && terraform fmt -check
24
24
25
25
plan : test
26
- @terraform plan
26
+ @terraform plan -input=false
27
27
28
28
destroy :
29
29
@terraform destroy
30
30
31
31
infra : test
32
- @terraform apply --auto-approve -var ks_tmp=$(ks_tmp )
32
+ @terraform apply -input=false - -auto-approve -var ks_tmp=$(ks_tmp )
33
33
34
- ks_img :
34
+ k8s :
35
35
@docker pull $(ks_img )
36
-
37
- k8s : ks_img
38
- @echo ${TF_VAR_base64_ansible_private_key} | base64 --decode > $(ks_tmp ) /id_rsa
39
36
@sudo chmod 600 $(ks_tmp ) /id_rsa
40
37
@docker run --rm -it \
41
38
--mount type=bind,source=" ${ks_tmp_abspath} /inventory.ini" ,dst=/inventory/sample/inventory.ini \
@@ -50,7 +47,7 @@ cluster: infra k8s clean
50
47
clean : $(needs_cleanup:%=%/clean )
51
48
52
49
% /clean :
53
- @rm -rf $*
50
+ @sudo rm -rf $*
54
51
55
- .PHONY : fmt init test plan destroy infra kubespray_image k8s cluster clean
52
+ .PHONY : fmt init test plan destroy infra k8s cluster clean
56
53
.PHONY : % /fmt % /fmt_check % /clean
You can’t perform that action at this time.
0 commit comments