Skip to content

Commit 8a15563

Browse files
authored
Adding Babylon-Config to GH action (#456)
1 parent 20a73bf commit 8a15563

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

.github/ISSUE_TEMPLATE/release.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ The following slash commands are available to use in comments on this issue:
1515

1616
| Command | Description | Parameters |
1717
|---|---|---|
18-
| `/release` | Creates a new released based on the current state of the `master` branch | `frontend=<version>`<br />`backend=<version>`<br />`engagement-status=<version>`<br />`gitapi=<version>`<br />`status=<version>`<br />`config=<version>`<br />`activity=<version>`<br />`artifacts=<version>`<br />`hosting=<version>`<br />`participants=<version>`<br />`engagements=<version>`<br />`dispatcher=<version>`<br />`agnosticv=<version>`<br />`anarchy=<version>`<br />`poolboy=<version>` |
18+
| `/release` | Creates a new released based on the current state of the `master` branch | `frontend=<version>`<br />`backend=<version>`<br />`engagement-status=<version>`<br />`gitapi=<version>`<br />`status=<version>`<br />`config=<version>`<br />`activity=<version>`<br />`artifacts=<version>`<br />`hosting=<version>`<br />`participants=<version>`<br />`engagements=<version>`<br />`dispatcher=<version>`<br />`agnosticv=<version>`<br />`anarchy=<version>`<br />`poolboy=<version>`<br />`babylon-config=<version>` |
1919
| `/promote` | Promotes the created release to the next environment | N/A |
2020
| `/cancel` | Cancels the current release (and closes this issue) | N/A |
2121
| `/finish` | Completes the current release (and closes this issue) | N/A |
22+

.github/workflows/release.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ jobs:
111111
AgnosticVVersion: ${{ github.event.client_payload.slash_command.args.named.agnosticv }}
112112
AnarchyVersion: ${{ github.event.client_payload.slash_command.args.named.anarchy }}
113113
PoolBoyVersion: ${{ github.event.client_payload.slash_command.args.named.poolboy }}
114+
BabylonConfigVersion: ${{ github.event.client_payload.slash_command.args.named.babylon-config }}
114115

115116
## Variables for Status Service Versions - matching and replacement strings
116117
Versions_FrontendMatchString: 'lodestar-frontend:.*'
@@ -143,6 +144,8 @@ jobs:
143144
Versions_AnarchyVersion: 'anarchy: ${{ github.event.client_payload.slash_command.args.named.anarchy }}'
144145
Versions_PoolBoyMatchString: 'poolboy:.*'
145146
Versions_PoolBoyVersion: 'poolboy: ${{ github.event.client_payload.slash_command.args.named.poolboy }}'
147+
Versions_BabylonConfigMatchString: 'babylon-config:.*'
148+
Versions_BabylonConfigVersion: 'babylon-config: ${{ github.event.client_payload.slash_command.args.named.babylon-config }}'
146149

147150
## LodeStar Overall Version String - value obtained at runtime
148151
Versions_LodeStarMatchString: 'lodestar:.*'
@@ -286,6 +289,14 @@ jobs:
286289
yq -i e '.spec.source.targetRevision = env(PoolBoyVersion)' $GITHUB_WORKSPACE/bootstrap/patches/poolboy.yaml ;
287290
yq -i e '. as $prnt | .spec.source.helm.values | . = sub(strenv(Versions_PoolBoyMatchString),strenv(Versions_PoolBoyVersion))| $prnt' $GITHUB_WORKSPACE/bootstrap/patches/lodestar-status.yaml ;
288291
292+
- name: Update Babylon / Config Release Info
293+
if: ${{ github.event.client_payload.slash_command.args.named.babylon-config != null }}
294+
uses: mikefarah/[email protected]
295+
with:
296+
cmd: >
297+
yq -i e '.spec.source.targetRevision = env(BabylonConfigVersion)' $GITHUB_WORKSPACE/bootstrap/patches/babylon-config.yaml ;
298+
yq -i e '. as $prnt | .spec.source.helm.values | . = sub(strenv(Versions_BabylonConfigMatchString),strenv(Versions_BabylonConfigVersion))| $prnt' $GITHUB_WORKSPACE/bootstrap/patches/lodestar-status.yaml ;
299+
289300
- name: Update LodeStar Status Release Info
290301
if: ${{ github.event.client_payload.slash_command.args.named.status != null }}
291302
uses: mikefarah/[email protected]

0 commit comments

Comments
 (0)