ci: Fixed sha

This commit is contained in:
Patrick Sy 2025-10-02 16:39:52 +02:00
parent 06d7f5f980
commit a9f67e4eb0
Signed by: Patrick.Sy
GPG key ID: DDDC8EC51823195E

View file

@ -17,9 +17,11 @@ jobs:
- name: Replace Image Version
run: |
echo sed -i "s@###IMAGETAG###@edp.buildth.ing/devfw-cicd/edgeconnect-action-demo:${{ github.sha }}@g" ./EdgeConnectConfig.yaml
sed -i "s@###IMAGETAG###@edp.buildth.ing/devfw-cicd/edgeconnect-action-demo:${{ github.sha }}@g" ./EdgeConnectConfig.yaml
cat ./EdgeConnectConfig.yaml
sha="${{ github.sha }}"
shortSha="${sha:0:7}"
echo sed -i "s@###IMAGETAG###@edp.buildth.ing/devfw-cicd/edgeconnect-action-demo:${shortSha}@g" ./k8s-deployment.yaml
sed -i "s@###IMAGETAG###@edp.buildth.ing/devfw-cicd/edgeconnect-action-demo:${shortSha}@g" ./k8s-deployment.yaml
cat ./k8s-deployment.yaml
- name: Deploy action
uses: https://edp.buildth.ing/DevFW-CICD/edge-connect-deploy-action@main