Compare commits

..

1 commit
main ... main

Author SHA1 Message Date
7a3e958d1b
ci: Hooking up the deploy workflow after a tag is being built
Some checks failed
build / build (push) Failing after 16s
2025-10-08 15:36:42 +02:00
4 changed files with 8 additions and 39 deletions

View file

@ -50,3 +50,7 @@ jobs:
allow: network.host
network: host
tags: ${{ steps.docker.outputs.tags }}
- name: Deploy
uses: ./.forgejo/workflows/deploy.yaml
if: startsWith(github.ref, 'refs/tags/v')

View file

@ -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 }}

View file

@ -1,10 +1,7 @@
name: deploy
on:
workflow_run:
workflows: [build]
types:
- completed
workflow_call:
workflow_dispatch:
jobs:

View file

@ -3,17 +3,17 @@
kind: edgeconnect-deployment
metadata:
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:
- region: "EU"
- organization: "dev-framework"
region: "EU"
cloudletOrg: "TelekomOP"
cloudletName: "Munich"
flavorName: "EU.small"