edgeconnect-action-demo/.forgejo/workflows/deploy.yaml

33 lines
942 B
YAML
Raw Normal View History

2025-10-02 14:14:37 +02:00
name: deploy
on:
workflow_run:
workflows: [build]
types:
- completed
2025-10-02 14:14:37 +02:00
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-22.04
steps:
2025-10-02 14:24:45 +02:00
- name: Checkout
uses: actions/checkout@v4
- name: Replace Image Version
run: |
2025-10-02 16:39:52 +02:00
sha="${{ github.sha }}"
shortSha="${sha:0:7}"
2025-10-02 16:42:52 +02:00
echo "Setting image version to: edp.buildth.ing/devfw-cicd/edgeconnect-action-demo:${shortSha}"
2025-10-02 16:39:52 +02:00
sed -i "s@###IMAGETAG###@edp.buildth.ing/devfw-cicd/edgeconnect-action-demo:${shortSha}@g" ./k8s-deployment.yaml
2025-10-02 14:24:45 +02:00
- name: Deploy action
2025-10-02 14:14:37 +02:00
uses: https://edp.buildth.ing/DevFW-CICD/edge-connect-deploy-action@main
id: deploy
with:
configFile: ./EdgeConnectConfig.yaml
2025-10-24 07:59:29 +00:00
baseUrl: https://hub.apps.edge.platform.mg3.mdb.osc.live
username: ${{ secrets.EDGEXR_PLATFORM_USERNAME }}
password: ${{ secrets.EDGEXR_PLATFORM_PASSWORD }}