32 lines
942 B
YAML
32 lines
942 B
YAML
name: deploy
|
|
|
|
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: Deploy action
|
|
uses: https://edp.buildth.ing/DevFW-CICD/edge-connect-deploy-action@main
|
|
id: deploy
|
|
with:
|
|
configFile: ./EdgeConnectConfig.yaml
|
|
baseUrl: https://hub.apps.edge.platform.mg3.mdb.osc.live
|
|
username: ${{ secrets.EDGEXR_PLATFORM_USERNAME }}
|
|
password: ${{ secrets.EDGEXR_PLATFORM_PASSWORD }}
|