Skip to content

Commit

Permalink
fix(github): docker deploy version (#1102)
Browse files Browse the repository at this point in the history
  • Loading branch information
rtrompier authored May 3, 2024
1 parent 4da0906 commit fca27f5
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/deploy-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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 }}"}'

0 comments on commit fca27f5

Please sign in to comment.