test(pipeline): create edgeXR app
This commit is contained in:
parent
0b59c41dbb
commit
75130328fd
1 changed files with 24 additions and 1 deletions
|
|
@ -38,4 +38,27 @@ jobs:
|
|||
name: Create edgeXR App
|
||||
run: |
|
||||
EDGEXR_TOKEN="$(curl -X POST https://hub.apps.edge.platform.mg3.mdb.osc.live/api/v1/login -H 'Content-Type: application/json' --data '{"password": "'${EDGEXR_PLATFORM_PASSWORD}'","username": "'${EDGEXR_PLATFORM_USERNAME}'"}' -s | jq -r .token)"
|
||||
curl -X POST https://hub.apps.edge.platform.mg3.mdb.osc.live/api/v1/auth/org/show -H "Authorization: Bearer $EDGEXR_TOKEN"
|
||||
|
||||
CREATEAPP_JSON=$(cat <<EOF
|
||||
{
|
||||
"App": {
|
||||
"key": {
|
||||
"organization": "edp-developer-framework",
|
||||
"name": "HelloWorldAuto",
|
||||
"version": "1.0"
|
||||
},
|
||||
"image_path": "edp.buildth.ing/devfw-cicd/fibonacci_pipeline:development",
|
||||
"image_type": "Docker",
|
||||
"access_ports": "tcp:80",
|
||||
"default_flavor": {
|
||||
"name": "EU.small"
|
||||
},
|
||||
"deployment": "docker",
|
||||
"required_outbound_connections": null
|
||||
},
|
||||
"Region": "EU"
|
||||
}
|
||||
EOF
|
||||
)
|
||||
|
||||
curl -X POST https://hub.apps.edge.platform.mg3.mdb.osc.live/api/v1/auth/ctrl/CreateApp -H 'Content-Type: application/json' -H "Authorization: Bearer $EDGEXR_TOKEN" -s --data "$CREATEAPP_JSON"
|
||||
Loading…
Add table
Add a link
Reference in a new issue