Compare commits
1 commit
| Author | SHA1 | Date | |
|---|---|---|---|
| 7a3e958d1b |
4 changed files with 8 additions and 39 deletions
|
|
@ -50,3 +50,7 @@ jobs:
|
||||||
allow: network.host
|
allow: network.host
|
||||||
network: host
|
network: host
|
||||||
tags: ${{ steps.docker.outputs.tags }}
|
tags: ${{ steps.docker.outputs.tags }}
|
||||||
|
|
||||||
|
- name: Deploy
|
||||||
|
uses: ./.forgejo/workflows/deploy.yaml
|
||||||
|
if: startsWith(github.ref, 'refs/tags/v')
|
||||||
|
|
|
||||||
|
|
@ -1,32 +0,0 @@
|
||||||
name: delete
|
|
||||||
|
|
||||||
on:
|
|
||||||
workflow_run:
|
|
||||||
workflows: [build]
|
|
||||||
types:
|
|
||||||
- completed
|
|
||||||
workflow_dispatch:
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
runs-on: ubuntu-22.04
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- 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:
|
|
||||||
configFile: ./EdgeConnectConfig.yaml
|
|
||||||
baseUrl: https://hub.apps.edge.platform.mg3.mdb.osc.live
|
|
||||||
username: ${{ secrets.EDGEXR_PLATFORM_USERNAME }}
|
|
||||||
password: ${{ secrets.EDGEXR_PLATFORM_PASSWORD }}
|
|
||||||
|
|
@ -1,10 +1,7 @@
|
||||||
name: deploy
|
name: deploy
|
||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_run:
|
workflow_call:
|
||||||
workflows: [build]
|
|
||||||
types:
|
|
||||||
- completed
|
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
|
|
||||||
|
|
@ -3,17 +3,17 @@
|
||||||
kind: edgeconnect-deployment
|
kind: edgeconnect-deployment
|
||||||
metadata:
|
metadata:
|
||||||
name: "edge-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:
|
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: "dev-framework"
|
||||||
|
region: "EU"
|
||||||
cloudletOrg: "TelekomOP"
|
cloudletOrg: "TelekomOP"
|
||||||
cloudletName: "Munich"
|
cloudletName: "Munich"
|
||||||
flavorName: "EU.small"
|
flavorName: "EU.small"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue