rtrm HF Staff commited on
Commit
6a6b5ba
·
unverified ·
1 Parent(s): c151f41

fix(github): docker deploy version (#1102)

Browse files
Files changed (1) hide show
  1. .github/workflows/deploy-prod.yml +11 -1
.github/workflows/deploy-prod.yml CHANGED
@@ -59,6 +59,16 @@ jobs:
59
  steps:
60
  - name: Set GITHUB_SHA_SHORT
61
  run: echo "GITHUB_SHA_SHORT=${{ env.GITHUB_EVENT_PULL_REQUEST_HEAD_SHA_SHORT }}" >> $GITHUB_ENV
 
 
 
 
 
 
 
 
 
 
62
  - name: Deploy on infra-deployments
63
  uses: aurelien-baudet/workflow-dispatch@v2
64
  with:
@@ -69,4 +79,4 @@ jobs:
69
  display-workflow-run-url-interval: 10s
70
  ref: refs/heads/main
71
  token: ${{ secrets.ARGO_CD_TOKEN }}
72
- inputs: '{"path": "hub/chat-ui/chat-ui.yaml", "values": ${{ env.GITHUB_SHA_SHORT }}, "url": "${{ github.event.head_commit.url }}"}'
 
59
  steps:
60
  - name: Set GITHUB_SHA_SHORT
61
  run: echo "GITHUB_SHA_SHORT=${{ env.GITHUB_EVENT_PULL_REQUEST_HEAD_SHA_SHORT }}" >> $GITHUB_ENV
62
+
63
+ - name: Gen values
64
+ run: |
65
+ VALUES=$(cat <<-END
66
+ image:
67
+ tag: "${{ env.GITHUB_SHA_SHORT }}"
68
+ END
69
+ )
70
+ echo "VALUES=$(echo "$VALUES" | yq -o=json | jq tostring)" >> $GITHUB_ENV
71
+
72
  - name: Deploy on infra-deployments
73
  uses: aurelien-baudet/workflow-dispatch@v2
74
  with:
 
79
  display-workflow-run-url-interval: 10s
80
  ref: refs/heads/main
81
  token: ${{ secrets.ARGO_CD_TOKEN }}
82
+ inputs: '{"path": "hub/chat-ui/chat-ui.yaml", "values": ${{ env.VALUES }}, "url": "${{ github.event.head_commit.url }}"}'