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 b8e2565 commit 4ce7ef5
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions .github/workflows/distribute.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,7 @@ jobs:
- name: Deploy to ArgoCD
run: |
set -e
status_code=$(curl -o ./curl-request -w "%{response_code}" -X POST https://api.github.com/repos/castus/lights-api-charts/dispatches \
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.tags }}"'" }}')
cat ./curl-request
if [[ $status_code -eq 200 ]]; then
echo "Request send"
else
exit 1
fi
--data '{"event_type": "deploy", "client_payload": { "image_tag": "'"${{ steps.meta.outputs.tags }}"'" }}'

0 comments on commit 4ce7ef5

Please sign in to comment.