This repository has been archived by the owner on Nov 16, 2023. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Edaena Salinas
authored and
Edaena Salinas
committed
Apr 23, 2020
1 parent
51de1c5
commit 05fd607
Showing
2 changed files
with
51 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
## Description | ||
|
||
Append an existing variable group in Azure DevOps project and its services. | ||
|
||
## Command Prerequisites | ||
|
||
This command requires to have an existing bedrock project that was initialized | ||
with `spk project init`. It also requires that the variable group to be added | ||
exists in the Azure DevOps project. | ||
|
||
## Example | ||
|
||
When an bedrock project repository is first initialized with `spk project init`, | ||
it will create a `bedrock.yaml` file that looks similar to this: | ||
|
||
```yaml | ||
rings: | ||
master: | ||
isDefault: true | ||
variableGroups: [] | ||
services: [] | ||
. | ||
. | ||
. | ||
``` | ||
|
||
running `spk project append-variable-group my-vg` with a variable group name, in | ||
this case `my-vg`, will add it under the `variables` section if it does not | ||
already exist: | ||
|
||
```yaml | ||
rings: | ||
master: | ||
isDefault: true | ||
variableGroups: | ||
- my-vg | ||
services: [] | ||
. | ||
. | ||
. | ||
``` | ||
|
||
If there are any `services` specified, it will add the variable group to its | ||
corresponding `build-update-hld.yaml` file under the `variables` section: | ||
|
||
```yaml | ||
variables: | ||
- group: my-vg | ||
``` |