From 3b7ec0a937e9006636281b7c521ba93968b2ef5a Mon Sep 17 00:00:00 2001 From: Krzysztof Romanowski Date: Sat, 28 Oct 2023 18:10:04 +0200 Subject: [PATCH] ci: Add deploy action --- .github/workflows/distribute.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/distribute.yml b/.github/workflows/distribute.yml index 90c7e4b..7405f54 100644 --- a/.github/workflows/distribute.yml +++ b/.github/workflows/distribute.yml @@ -45,3 +45,10 @@ jobs: push: true tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} + + - name: Deploy to ArgoCD + run: | + curl -X POST https://api.github.com/repos/c4stus/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 }}"'" }}'