diff --git a/.forgejo/workflows/createaction.yaml b/.forgejo/workflows/createaction.yaml new file mode 100644 index 0000000..6405403 --- /dev/null +++ b/.forgejo/workflows/createaction.yaml @@ -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 }} diff --git a/.forgejo/workflows/createapp.yaml b/.forgejo/workflows/createapp.yaml index e43f89c..52dbab8 100644 --- a/.forgejo/workflows/createapp.yaml +++ b/.forgejo/workflows/createapp.yaml @@ -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 <