Compare commits

..

No commits in common. "main" and "v1.1.5" have entirely different histories.
main ... v1.1.5

3 changed files with 5 additions and 73 deletions

View file

@ -1,47 +0,0 @@
name: createapp
on:
workflow_dispatch:
inputs:
a_app_region:
type: string
description: "Application Region e.g. EU"
default: EU
required: true
b_app_flavor:
type: string
description: "Application Flavor e.g. EU.small"
default: EU.small
required: true
c_cloudlet:
type: choice
options:
- Amsterdam-OTC
- Hamburg
- Leipzig
- Munich
- Berlin
- Frankfurt
- Magdeburg-OTC
- Bonn
- Magdeburg
- crm-vm-2
description: "Cloudlet location"
default: Munich
required: true
jobs:
build:
runs-on: ubuntu-22.04
steps:
-
name: Deploy action
uses: https://edp.buildth.ing/DevFW-CICD/edge-connect-action/deploy@main
id: deploy
with:
region: ${{ inputs.a_app_region }}
flavor: ${{ inputs.b_app_flavor }}
cloudlet: ${{ inputs.c_cloudlet }}
edgexr_platform_username: ${{ secrets.EDGEXR_PLATFORM_USERNAME }}
edgexr_platform_password: ${{ secrets.EDGEXR_PLATFORM_PASSWORD }}

View file

@ -25,7 +25,6 @@ on:
- Magdeburg-OTC
- Bonn
- Magdeburg
- crm-vm-2
description: "Cloudlet location"
default: Munich
required: true
@ -76,7 +75,7 @@ jobs:
"region": "${APP_REGION}",
"app": {
"key": {
"organization": "dev-framework",
"organization": "edp-developer-framework",
"name": "$(echo ${{ steps.repository.outputs.repository }} | sed -e 's|^.*/||')",
"version": "${{ steps.docker.outputs.version }}"
},
@ -110,7 +109,7 @@ jobs:
"region": "${APP_REGION}",
"appinst": {
"key": {
"organization": "dev-framework",
"organization": "edp-developer-framework",
"name": "$(echo ${{ steps.repository.outputs.repository }} | sed -e 's|^.*/||')-instance",
"cloudlet_key": {
"organization": "TelekomOP",
@ -118,7 +117,7 @@ jobs:
}
},
"app_key": {
"organization": "dev-framework",
"organization": "edp-developer-framework",
"name": "$(echo ${{ steps.repository.outputs.repository }} | sed -e 's|^.*/||')",
"version": "${{ steps.docker.outputs.version }}"
},

View file

@ -7,27 +7,11 @@ 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:
@ -69,11 +53,7 @@ jobs:
"appinst": {
"key": {
"organization": "edp-developer-framework",
"name": "$(echo ${{ steps.repository.outputs.repository }} | sed -e 's|^.*/||')-instance",
"cloudlet_key": {
"organization": "TelekomOP",
"name": "${CLOUDLET}"
}
"name": "$(echo ${{ steps.repository.outputs.repository }} | sed -e 's|^.*/||')-instance"
},
"app_key": {
"organization": "edp-developer-framework",
@ -88,7 +68,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 || true
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
-
name: Delete Edge Connect App
run: |