chore(edgeplatform): using new delete action syntax
All checks were successful
build / build (push) Successful in 14s
All checks were successful
build / build (push) Successful in 14s
This commit is contained in:
parent
f190109025
commit
09ad5decdf
1 changed files with 14 additions and 39 deletions
|
|
@ -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 }}
|
||||
baseUrl: https://hub.apps.edge.platform.mg3.mdb.osc.live
|
||||
configFile: ./EdgeConnectConfig.yaml
|
||||
baseUrl: https://hub.apps.orca.platform.mg3.mdb.osc.live
|
||||
username: ${{ secrets.EDGEXR_PLATFORM_USERNAME }}
|
||||
password: ${{ secrets.EDGEXR_PLATFORM_PASSWORD }}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue