Compare commits

...

5 commits
v1.1.9 ... main

Author SHA1 Message Date
11e8511b64
fix(action): 🚑 fix action url again
All checks were successful
build / build (push) Successful in 14s
2025-09-23 15:31:32 +02:00
ef0335bda0
fix(action): 🚚 Use correct action default url
All checks were successful
build / build (push) Successful in 15s
2025-09-23 15:29:03 +02:00
6279a296bf
fix(action): 🐛 fix action path
All checks were successful
build / build (push) Successful in 23s
2025-09-23 15:22:40 +02:00
b1afc10922
feat(action): Use deploy action
All checks were successful
build / build (push) Successful in 15s
2025-09-23 15:17:09 +02:00
84a4576935 .forgejo/workflows/createapp.yaml aktualisiert
All checks were successful
build / build (push) Successful in 17s
2025-09-15 15:24:19 +00:00
2 changed files with 51 additions and 4 deletions

View file

@ -0,0 +1,47 @@
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

@ -69,7 +69,7 @@ jobs:
run: |
set -e
echo login
EDGEXR_TOKEN="$(curl -X POST https://mc.orca.platform.mg3.mdb.osc.live/api/v1/login -H 'Content-Type: application/json' --data '{"password": "'${EDGEXR_PLATFORM_PASSWORD}'","username": "'${EDGEXR_PLATFORM_USERNAME}'"}' -sSf | jq -r .token)"
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}'"}' -sSf | jq -r .token)"
CREATEAPP_JSON=$(cat <<EOF
{
@ -98,12 +98,12 @@ jobs:
echo $CREATEAPP_JSON
echo create app
curl -X POST https://mc.orca.platform.mg3.mdb.osc.live/api/v1/auth/ctrl/CreateApp -H 'Content-Type: application/json' -H "Authorization: Bearer $EDGEXR_TOKEN" -S --data "$CREATEAPP_JSON" --fail-with-body
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" --fail-with-body
-
name: Create Edge Connect App Instance
run: |
set -e
EDGEXR_TOKEN="$(curl -X POST https://mc.orca.platform.mg3.mdb.osc.live/api/v1/login -H 'Content-Type: application/json' --data '{"password": "'${EDGEXR_PLATFORM_PASSWORD}'","username": "'${EDGEXR_PLATFORM_USERNAME}'"}' -sSf | jq -r .token)"
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}'"}' -sSf | jq -r .token)"
CREATEAPPINSTANCE_JSON=$(cat <<EOF
{
@ -133,4 +133,4 @@ jobs:
echo $CREATEAPPINSTANCE_JSON
echo create app instance
curl -X POST https://mc.orca.platform.mg3.mdb.osc.live/api/v1/auth/ctrl/CreateAppInst -H 'Content-Type: application/json' -H "Authorization: Bearer $EDGEXR_TOKEN" -S --data "$CREATEAPPINSTANCE_JSON" --fail-with-body
curl -X POST https://hub.apps.edge.platform.mg3.mdb.osc.live/api/v1/auth/ctrl/CreateAppInst -H 'Content-Type: application/json' -H "Authorization: Bearer $EDGEXR_TOKEN" -S --data "$CREATEAPPINSTANCE_JSON" --fail-with-body