Compare commits
4 commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 12657eb4c4 | |||
| a748cc08b4 | |||
| dcbabc4f67 | |||
| b79f28d2c7 |
3 changed files with 53 additions and 52 deletions
|
|
@ -1,11 +1,38 @@
|
||||||
name: delete
|
name: delete
|
||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_run:
|
|
||||||
workflows: [build]
|
|
||||||
types:
|
|
||||||
- completed
|
|
||||||
workflow_dispatch:
|
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:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
|
@ -15,18 +42,16 @@ jobs:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
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
|
- name: Delete action
|
||||||
uses: https://edp.buildth.ing/DevFW-CICD/edge-connect-delete-action@main
|
uses: https://edp.buildth.ing/DevFW-CICD/edge-connect-delete-action@main
|
||||||
id: delete
|
id: delete
|
||||||
with:
|
with:
|
||||||
configFile: ./EdgeConnectConfig.yaml
|
name: ${{ inputs.a_name }}
|
||||||
|
appVersion: ${{ inputs.b_appVersion }}
|
||||||
|
org: ${{ inputs.c_org }}
|
||||||
|
region: ${{ inputs.d_region }}
|
||||||
|
cloudletOrg: ${{ inputs.e_cloudletOrg }}
|
||||||
|
cloudlet: ${{ inputs.f_cloudlet }}
|
||||||
baseUrl: https://hub.apps.edge.platform.mg3.mdb.osc.live
|
baseUrl: https://hub.apps.edge.platform.mg3.mdb.osc.live
|
||||||
username: ${{ secrets.EDGEXR_PLATFORM_USERNAME }}
|
username: ${{ secrets.EDGEXR_PLATFORM_USERNAME }}
|
||||||
password: ${{ secrets.EDGEXR_PLATFORM_PASSWORD }}
|
password: ${{ secrets.EDGEXR_PLATFORM_PASSWORD }}
|
||||||
|
|
|
||||||
|
|
@ -2,18 +2,18 @@
|
||||||
# How does it differ from the EdgeXR API?
|
# How does it differ from the EdgeXR API?
|
||||||
kind: edgeconnect-deployment
|
kind: edgeconnect-deployment
|
||||||
metadata:
|
metadata:
|
||||||
name: "edge-app-demo" # name could be used for appName
|
name: "garm-app-demo" # name could be used for appName
|
||||||
appVersion: "1.0.0"
|
|
||||||
organization: "edp2"
|
|
||||||
spec:
|
spec:
|
||||||
# dockerApp: # Docker is OBSOLETE
|
# dockerApp: # Docker is OBSOLETE
|
||||||
# appVersion: "1.0.0"
|
# appVersion: "1.0.0"
|
||||||
# manifestFile: "./docker-compose.yaml"
|
# manifestFile: "./docker-compose.yaml"
|
||||||
# image: "https://registry-1.docker.io/library/nginx:latest"
|
# image: "https://registry-1.docker.io/library/nginx:latest"
|
||||||
k8sApp:
|
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,
|
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:
|
infraTemplate:
|
||||||
- region: "EU"
|
- organization: "edp2"
|
||||||
|
region: "EU"
|
||||||
cloudletOrg: "TelekomOP"
|
cloudletOrg: "TelekomOP"
|
||||||
cloudletName: "Munich"
|
cloudletName: "Munich"
|
||||||
flavorName: "EU.small"
|
flavorName: "EU.small"
|
||||||
|
|
|
||||||
|
|
@ -1,39 +1,15 @@
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Service
|
kind: Pod
|
||||||
metadata:
|
metadata:
|
||||||
name: edgeconnect-coder-tcp
|
name: garm
|
||||||
labels:
|
labels:
|
||||||
run: edgeconnect-coder
|
run: garm
|
||||||
|
mexDeployGen: kubernetes-basic
|
||||||
spec:
|
spec:
|
||||||
type: LoadBalancer
|
containers:
|
||||||
ports:
|
- name: garm
|
||||||
- name: tcp80
|
image: ###IMAGETAG###
|
||||||
protocol: TCP
|
imagePullPolicy: Always
|
||||||
port: 80
|
ports:
|
||||||
targetPort: 80
|
- containerPort: 80
|
||||||
selector:
|
protocol: TCP
|
||||||
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
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue