diff --git a/.github/workflows/distribute.yml b/.github/workflows/distribute.yml index 5bb1a28..513c250 100644 --- a/.github/workflows/distribute.yml +++ b/.github/workflows/distribute.yml @@ -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"'" }}'