Compare commits

..

6 commits
test2 ... main

Author SHA1 Message Date
caf5d0a7e8 Update .forgejo/workflows/delete.yaml
All checks were successful
build / build (push) Successful in 15s
2025-10-24 07:59:45 +00:00
8076efc80a Update .forgejo/workflows/deploy.yaml
All checks were successful
build / build (push) Successful in 15s
2025-10-24 07:59:29 +00:00
b8844249d4 Update EdgeConnectConfig.yaml
All checks were successful
build / build (push) Successful in 15s
2025-10-24 07:57:25 +00:00
09ad5decdf chore(edgeplatform): using new delete action syntax
All checks were successful
build / build (push) Successful in 14s
2025-10-20 17:15:21 +02:00
f190109025 chore(edgeplatform): switched to orca staging environment
All checks were successful
build / build (push) Successful in 14s
2025-10-20 17:07:06 +02:00
83297a1587 chore(edge-client): updated edge deployment manifest to sdk 2.0.1
All checks were successful
build / build (push) Successful in 13s
2025-10-20 14:56:55 +00:00
3 changed files with 52 additions and 53 deletions

View file

@ -1,39 +1,12 @@
name: delete
on:
workflow_run:
workflows: [build]
types:
- completed
workflow_dispatch:
inputs:
a_name:
type: string
description: "App name to delete"
required: true
default: ""
b_appVersion:
type: string
description: "Version of the app to delete"
required: true
default: ""
c_org:
type: string
description: "Organization of the app to delete"
required: true
default: ""
d_region:
type: string
description: "Region of the app to delete"
required: true
default: ""
e_cloudletOrg:
type: string
description: "Cloudlet organization of the app to delete"
required: true
default: ""
f_cloudlet:
type: string
description: "Cloudlet of the app to delete"
required: true
default: ""
jobs:
build:
runs-on: ubuntu-22.04
@ -42,16 +15,18 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
- name: Replace Image Version
run: |
sha="${{ github.sha }}"
shortSha="${sha:0:7}"
echo "Setting image version to: edp.buildth.ing/devfw-cicd/edgeconnect-action-demo:${shortSha}"
sed -i "s@###IMAGETAG###@edp.buildth.ing/devfw-cicd/edgeconnect-action-demo:${shortSha}@g" ./k8s-deployment.yaml
- name: Delete action
uses: https://edp.buildth.ing/DevFW-CICD/edge-connect-delete-action@main
id: delete
with:
name: ${{ inputs.a_name }}
appVersion: ${{ inputs.b_appVersion }}
org: ${{ inputs.c_org }}
region: ${{ inputs.d_region }}
cloudletOrg: ${{ inputs.e_cloudletOrg }}
cloudlet: ${{ inputs.f_cloudlet }}
configFile: ./EdgeConnectConfig.yaml
baseUrl: https://hub.apps.edge.platform.mg3.mdb.osc.live
username: ${{ secrets.EDGEXR_PLATFORM_USERNAME }}
password: ${{ secrets.EDGEXR_PLATFORM_PASSWORD }}

View file

@ -2,18 +2,18 @@
# How does it differ from the EdgeXR API?
kind: edgeconnect-deployment
metadata:
name: "garm-app-demo" # name could be used for appName
name: "edge-app-demo" # name could be used for appName
appVersion: "1.0.0"
organization: "edp2"
spec:
# dockerApp: # Docker is OBSOLETE
# appVersion: "1.0.0"
# manifestFile: "./docker-compose.yaml"
# image: "https://registry-1.docker.io/library/nginx:latest"
k8sApp:
appVersion: "1.0.0"
manifestFile: "./k8s-deployment.yaml" # store hash of the manifest file in annotation field. Annotations is a comma separated map of arbitrary key value pairs,
infraTemplate:
- organization: "edp2"
region: "EU"
- region: "EU"
cloudletOrg: "TelekomOP"
cloudletName: "Munich"
flavorName: "EU.small"

View file

@ -1,15 +1,39 @@
apiVersion: v1
kind: Pod
kind: Service
metadata:
name: garm
name: edgeconnect-coder-tcp
labels:
run: garm
mexDeployGen: kubernetes-basic
run: edgeconnect-coder
spec:
containers:
- name: garm
image: ###IMAGETAG###
imagePullPolicy: Always
ports:
- containerPort: 80
protocol: TCP
type: LoadBalancer
ports:
- name: tcp80
protocol: TCP
port: 80
targetPort: 80
selector:
run: edgeconnect-coder
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: edgeconnect-coder-deployment
spec:
replicas: 1
selector:
matchLabels:
run: edgeconnect-coder
template:
metadata:
labels:
run: edgeconnect-coder
mexDeployGen: kubernetes-basic
spec:
volumes:
containers:
- name: edgeconnect-coder
image: ###IMAGETAG###
imagePullPolicy: Always
ports:
- containerPort: 80
protocol: TCP