test(pipeline): create edgeXR app

This commit is contained in:
Christopher Hase 2025-08-14 10:43:16 +02:00
parent 0b59c41dbb
commit 75130328fd

View file

@ -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"