From fca27f5fff34badcfe95946a0b5bf90f8d231174 Mon Sep 17 00:00:00 2001 From: Remy Date: Fri, 3 May 2024 15:56:39 +0200 Subject: [PATCH] fix(github): docker deploy version (#1102) --- .github/workflows/deploy-prod.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deploy-prod.yml b/.github/workflows/deploy-prod.yml index 2f98be54950..fef4aafea11 100644 --- a/.github/workflows/deploy-prod.yml +++ b/.github/workflows/deploy-prod.yml @@ -59,6 +59,16 @@ jobs: steps: - name: Set GITHUB_SHA_SHORT run: echo "GITHUB_SHA_SHORT=${{ env.GITHUB_EVENT_PULL_REQUEST_HEAD_SHA_SHORT }}" >> $GITHUB_ENV + + - name: Gen values + run: | + VALUES=$(cat <<-END + image: + tag: "${{ env.GITHUB_SHA_SHORT }}" + END + ) + echo "VALUES=$(echo "$VALUES" | yq -o=json | jq tostring)" >> $GITHUB_ENV + - name: Deploy on infra-deployments uses: aurelien-baudet/workflow-dispatch@v2 with: @@ -69,4 +79,4 @@ jobs: display-workflow-run-url-interval: 10s ref: refs/heads/main token: ${{ secrets.ARGO_CD_TOKEN }} - inputs: '{"path": "hub/chat-ui/chat-ui.yaml", "values": ${{ env.GITHUB_SHA_SHORT }}, "url": "${{ github.event.head_commit.url }}"}' + inputs: '{"path": "hub/chat-ui/chat-ui.yaml", "values": ${{ env.VALUES }}, "url": "${{ github.event.head_commit.url }}"}'