Skip to content

Commit

Permalink
ci: Add deploy action
Browse files Browse the repository at this point in the history
  • Loading branch information
castus committed Oct 28, 2023
1 parent 82efbf4 commit 0b96edd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/distribute.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ jobs:
- name: Deploy to ArgoCD
run: |
set -e
image_version=$(echo "${{ steps.meta.outputs.labels[] }}" | cut -d ":" -f 2)
curl -w "%{response_code}" -X POST https://api.github.com/repos/castus/lights-api-charts/dispatches \
-H 'Accept: application/vnd.github.everest-preview+json' \
-u ${{ secrets.CHARTS_DEPLOY_TOKEN }} \
--data '{"event_type": "deploy", "client_payload": { "image_tag": "'"${{ steps.meta.outputs.labels.org\.opencontainers\.image\.version }}"'" }}'
--data '{"event_type": "deploy", "client_payload": { "image_tag": "'"$image_version"'" }}'

0 comments on commit 0b96edd

Please sign in to comment.