File tree Expand file tree Collapse file tree 7 files changed +87
-4
lines changed
Expand file tree Collapse file tree 7 files changed +87
-4
lines changed Original file line number Diff line number Diff line change 11#! /bin/bash
22
3- circleci local execute --job orb-tools/lint && \
4- circleci local execute --job orb-tools/shellcheck && \
53circleci config pack src > orb.yml && \
64circleci orb publish orb.yml rackerlabs/rsspca@dev:alpha && rm -rf orb.yml
75
Original file line number Diff line number Diff line change 1+ parameters :
2+ terraform-version :
3+ default : " 0.12.24"
4+ type : string
5+ install-path :
6+ type : string
7+ default : /home/circleci/bin/
8+ steps :
9+ - run :
10+ name : Installing terraform version << parameters.terraform-version >> to << parameters.install-path >>
11+ command : |
12+ mkdir -p << parameters.install-path >>
13+ wget -O /tmp/terraform.zip "https://releases.hashicorp.com/terraform/<< parameters.terraform-version >>/terraform_<< parameters.terraform-version >>_linux_amd64.zip"
14+ unzip -d "<< parameters.install-path >>" /tmp/terraform.zip
15+ << parameters.install-path >>/terraform -v
Original file line number Diff line number Diff line change 1+ steps :
2+ - checkout
3+ - run :
4+ name : Lint Terraform
5+ command : terraform fmt -check=True -diff=True -recursive
6+
Original file line number Diff line number Diff line change 1+ parameters :
2+ docker_tag :
3+ type : string
4+ default : light
5+ docker :
6+ - image : hashicorp/terraform:<<parameters.docker_tag>>
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ parameters:
3232 blank is provided then this job will not persist to a workspace.
3333 type : string
3434 workspace-root :
35- default : workspace
35+ default : /home/circleci
3636 description : >
3737 Workspace root path that is either an absolute path or a path relative to
3838 the working directory.
@@ -102,4 +102,4 @@ steps:
102102 - persist_to_workspace :
103103 root : <<parameters.workspace-root>>
104104 paths :
105- - <<parameters.output >>
105+ - <<parameters.workspace-path >>
Original file line number Diff line number Diff line change 1+ description : Export requirements from a poetry project
2+ parameters :
3+ executor :
4+ type : executor
5+ default : default
6+ attach-workspace :
7+ default : true
8+ description : >
9+ Boolean for whether or not to attach to an existing workspace. Default is
10+ true.
11+ type : boolean
12+ checkout :
13+ default : false
14+ description : |
15+ Boolean for whether or not to checkout as a first step. Default is false.
16+ type : boolean
17+ install-path :
18+ description : The name of the output file.
19+ default : bin/
20+ type : string
21+ persist-to-workspace :
22+ default : true
23+ description : |
24+ Boolean to persist requirements file to the workspace
25+ type : boolean
26+ terraform-version :
27+ default : " 0.12.24"
28+ type : string
29+ workspace-root :
30+ default : /home/circleci
31+ description : >
32+ Workspace root path that is either an absolute path or a path relative to
33+ the working directory.
34+ type : string
35+ executor : << parameters.executor >>
36+ steps :
37+ - when :
38+ condition : <<parameters.checkout>>
39+ steps :
40+ - checkout
41+ - when :
42+ condition : <<parameters.attach-workspace>>
43+ steps :
44+ - attach_workspace :
45+ at : <<parameters.workspace-root>>
46+ - terraform-install :
47+ install-path : <<parameters.workspace-root>>/<<parameters.install-path>>
48+ terraform-version : <<parameters.terraform-version>>
49+ - when :
50+ condition : <<parameters.persist-to-workspace>>
51+ steps :
52+ - persist_to_workspace :
53+ root : <<parameters.workspace-root>>
54+ paths :
55+ - <<parameters.install-path>>terraform
Original file line number Diff line number Diff line change 1+ executor : terraform
2+ steps :
3+ - terraform-lint
You can’t perform that action at this time.
0 commit comments