Skip to content

Commit 162a3a2

Browse files
authored
Epic/dmt v2 (#71)
* New damsel with dmt_v2 proto * Bump submodules * Need image from epic * Bump woorl * Bump damsel' ' * Bump damsel * Add user op creation script * Update DMT script to use author management APIs * Rename create_user_op.sh to create_author.sh * Update damsel submodule and fix author ID handling in script * Fix JSON key check in create_author.sh error response handling * Update damsel * Fix jq expression for handling AuthorAlreadyExists exception * Update DMT host configuration in create_author.sh script * Disable pipefail in create_author.sh script * Update damsel * Update damsel * Update damsel * Update damsel to latest master
1 parent 9be2ed7 commit 162a3a2

6 files changed

Lines changed: 30 additions & 5 deletions

File tree

‎.env‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
OTP_VERSION=24.3.4
22
STEP_VERSION=0.24.3
33
THRIFT_VERSION=0.14.2.2
4-
WOORL_VERSION=1.7
4+
WOORL_VERSION=1.10

‎.github/workflows/build-image.yaml‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@ on:
33
pull_request:
44
branches: ["**"]
55
push:
6-
branches: [master]
6+
branches:
7+
- "master"
8+
- "epic/**"
79

810
env:
911
REGISTRY: ghcr.io

‎limiter-proto‎

‎machinegun-proto‎

‎scripts/dmt/create_author.sh‎

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
#!/usr/bin/env bash
2+
3+
set -o errexit
4+
set +o pipefail
5+
set -o errtrace
6+
7+
export CHARSET=UTF-8
8+
export LANG=C.UTF-8
9+
10+
EMAIL=${1}
11+
12+
NAME=${1}
13+
14+
AUTHOR_PARAMS=$(cat <<END
15+
{
16+
"email": "${EMAIL}",
17+
"name": "${NAME}"
18+
}
19+
END
20+
)
21+
22+
woorl -s "damsel/proto/domain_config_v2.thrift" "http://${DMT:-dmt}:8022/v1/domain/author" AuthorManagement Create "${AUTHOR_PARAMS}" |
23+
jq -r 'if .exception == "AuthorAlreadyExists" then .data.id else .id end'

0 commit comments

Comments
 (0)