From 4ce7ef578aca6e1ea8abc6395045a7d6f6c31ffe Mon Sep 17 00:00:00 2001 From: Krzysztof Romanowski Date: Sat, 28 Oct 2023 18:31:27 +0200 Subject: [PATCH] ci: Add deploy action --- .github/workflows/distribute.yml | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/.github/workflows/distribute.yml b/.github/workflows/distribute.yml index 6278173..96d224f 100644 --- a/.github/workflows/distribute.yml +++ b/.github/workflows/distribute.yml @@ -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 }}"'" }}'