Update .forgejo/workflows/deleteapp.yaml
All checks were successful
build / build (push) Successful in 17s
All checks were successful
build / build (push) Successful in 17s
This commit is contained in:
parent
b61fb484e9
commit
223bfe40af
1 changed files with 19 additions and 2 deletions
|
|
@ -7,11 +7,27 @@ on:
|
|||
type: string
|
||||
description: "Application Region e.g. EU"
|
||||
default: EU
|
||||
b_cloudlet:
|
||||
type: choice
|
||||
options:
|
||||
- Amsterdam-OTC
|
||||
- Hamburg
|
||||
- Leipzig
|
||||
- Munich
|
||||
- Berlin
|
||||
- Frankfurt
|
||||
- Magdeburg-OTC
|
||||
- Bonn
|
||||
- Magdeburg
|
||||
description: "Cloudlet e.g. EU.small"
|
||||
default: Munich
|
||||
required: true
|
||||
|
||||
env:
|
||||
EDGEXR_PLATFORM_USERNAME: ${{ secrets.EDGEXR_PLATFORM_USERNAME }}
|
||||
EDGEXR_PLATFORM_PASSWORD: ${{ secrets.EDGEXR_PLATFORM_PASSWORD }}
|
||||
APP_REGION: ${{ inputs.a_app_region }}
|
||||
CLOUDLET: ${{ inputs.b_cloudlet }}
|
||||
|
||||
jobs:
|
||||
build:
|
||||
|
|
@ -55,7 +71,8 @@ jobs:
|
|||
"organization": "edp-developer-framework",
|
||||
"name": "$(echo ${{ steps.repository.outputs.repository }} | sed -e 's|^.*/||')-instance",
|
||||
"cloudlet_key": {
|
||||
"organization": "TelekomOP"
|
||||
"organization": "TelekomOP",
|
||||
"name": "${CLOUDLET}"
|
||||
}
|
||||
},
|
||||
"app_key": {
|
||||
|
|
@ -71,7 +88,7 @@ jobs:
|
|||
echo $DELETEAPPINSTANCE_JSON
|
||||
|
||||
echo delete app instance
|
||||
curl -X POST https://hub.apps.edge.platform.mg3.mdb.osc.live/api/v1/auth/ctrl/DeleteAppInst -H 'Content-Type: application/json' -H "Authorization: Bearer $EDGEXR_TOKEN" -S --data "$DELETEAPPINSTANCE_JSON" --fail-with-body
|
||||
curl -X POST https://hub.apps.edge.platform.mg3.mdb.osc.live/api/v1/auth/ctrl/DeleteAppInst -H 'Content-Type: application/json' -H "Authorization: Bearer $EDGEXR_TOKEN" -S --data "$DELETEAPPINSTANCE_JSON" --fail-with-body || true
|
||||
-
|
||||
name: Delete Edge Connect App
|
||||
run: |
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue