Merge branch 'feature/circleci-labs' of https://github.com/valet-customers/labs into luke-edits

This commit is contained in:
Luke Engle
2022-09-20 12:42:45 -07:00
18 changed files with 1201 additions and 147 deletions
+3 -3
View File
@@ -18,7 +18,7 @@ In this lab you will build upon the `dry-run` command to override Valet's defaul
You will be performing a `dry-run` command to inspect the workflow that is converted by default. Run the following command within the codespace terminal:
```bash
gh valet dry-run gitlab --output-dir tmp --namespace valet --project terraform-example
gh valet dry-run gitlab --output-dir tmp/dry-run --namespace valet --project terraform-example
```
The converted workflow that is generated by the above command can be seen below:
@@ -115,7 +115,7 @@ end
Now you can perform another `dry-run` command and use the `--custom-transformers` CLI option to provide this custom transformer. Run the following command within your codespace terminal:
```bash
gh valet dry-run gitlab --output-dir tmp --namespace valet --project terraform-example --custom-transformers transformers.rb
gh valet dry-run gitlab --output-dir tmp/dry-run --namespace valet --project terraform-example --custom-transformers transformers.rb
```
The converted workflow that is generated by the above command will now use the custom logic for the `artifacts.terraform` step.
@@ -131,7 +131,7 @@ The converted workflow that is generated by the above command will now use the c
You can also use custom transformers to edit the values of environment variables in converted workflows. In this example, you will update the `PLAN_JSON` environment variable to be `custom_plan.json` instead of `plan.json`.
To do this, add the following code to the `transformers.rb` file.
To do this, add the following code at the top of the `transformers.rb` file.
```ruby
env "PLAN_JSON", "custom_plan.json"