Update .forgejo/workflows/deleteapp.yaml
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
|
type: string
|
||||||
description: "Application Region e.g. EU"
|
description: "Application Region e.g. EU"
|
||||||
default: 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:
|
env:
|
||||||
EDGEXR_PLATFORM_USERNAME: ${{ secrets.EDGEXR_PLATFORM_USERNAME }}
|
EDGEXR_PLATFORM_USERNAME: ${{ secrets.EDGEXR_PLATFORM_USERNAME }}
|
||||||
EDGEXR_PLATFORM_PASSWORD: ${{ secrets.EDGEXR_PLATFORM_PASSWORD }}
|
EDGEXR_PLATFORM_PASSWORD: ${{ secrets.EDGEXR_PLATFORM_PASSWORD }}
|
||||||
APP_REGION: ${{ inputs.a_app_region }}
|
APP_REGION: ${{ inputs.a_app_region }}
|
||||||
|
CLOUDLET: ${{ inputs.b_cloudlet }}
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
|
@ -55,7 +71,8 @@ jobs:
|
||||||
"organization": "edp-developer-framework",
|
"organization": "edp-developer-framework",
|
||||||
"name": "$(echo ${{ steps.repository.outputs.repository }} | sed -e 's|^.*/||')-instance",
|
"name": "$(echo ${{ steps.repository.outputs.repository }} | sed -e 's|^.*/||')-instance",
|
||||||
"cloudlet_key": {
|
"cloudlet_key": {
|
||||||
"organization": "TelekomOP"
|
"organization": "TelekomOP",
|
||||||
|
"name": "${CLOUDLET}"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"app_key": {
|
"app_key": {
|
||||||
|
|
@ -71,7 +88,7 @@ jobs:
|
||||||
echo $DELETEAPPINSTANCE_JSON
|
echo $DELETEAPPINSTANCE_JSON
|
||||||
|
|
||||||
echo delete app instance
|
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
|
name: Delete Edge Connect App
|
||||||
run: |
|
run: |
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue