mirror of
https://github.com/zama-ai/concrete.git
synced 2026-04-17 03:00:54 -04:00
fix(build): fix curl data and gha statuses/expressions
This commit is contained in:
@@ -106,17 +106,14 @@ jobs:
|
|||||||
path: diff-coverage.txt
|
path: diff-coverage.txt
|
||||||
recreate: true
|
recreate: true
|
||||||
- name: Trigger docker push workflow
|
- name: Trigger docker push workflow
|
||||||
if: ${{ github.event_name == 'repository_dispatch' && github.event.event_type == 'env-docker-preflight' }}
|
if: ${{ always() && github.event_name == 'repository_dispatch' && github.event.event_type == 'env-docker-preflight' }}
|
||||||
env:
|
|
||||||
WORKFLOW_SUCCESSFUL: toJSON(success())
|
|
||||||
run: |
|
run: |
|
||||||
curl \
|
curl \
|
||||||
-X POST \
|
-X POST \
|
||||||
-H "Accept: application/vnd.github.v3+json" \
|
-H "Accept: application/vnd.github.v3+json" \
|
||||||
-H "Authorization: token ${{ secrets.BOT_TOKEN }}" \
|
-H "Authorization: token ${{ secrets.BOT_TOKEN }}" \
|
||||||
https://api.github.com/repos/${{ github.repository }}/dispatches \
|
https://api.github.com/repos/${{ github.repository }}/dispatches \
|
||||||
-d '{"event_type":"publish-env-docker"}' \
|
-d '{"event_type":"publish-env-docker","client_payload":{"preflight_status":"${{ job.status }}"}}'
|
||||||
-d '{"client_payload": {"preflight_success":"${{ env.WORKFLOW_SUCCESSFUL }}"}}'
|
|
||||||
- name: Slack Notification
|
- name: Slack Notification
|
||||||
if: ${{ always() }}
|
if: ${{ always() }}
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
|
|||||||
7
.github/workflows/docker-env.yaml
vendored
7
.github/workflows/docker-env.yaml
vendored
@@ -62,8 +62,7 @@ jobs:
|
|||||||
-H "Accept: application/vnd.github.v3+json" \
|
-H "Accept: application/vnd.github.v3+json" \
|
||||||
-H "Authorization: token ${{ secrets.BOT_TOKEN }}" \
|
-H "Authorization: token ${{ secrets.BOT_TOKEN }}" \
|
||||||
https://api.github.com/repos/${{ github.repository }}/dispatches \
|
https://api.github.com/repos/${{ github.repository }}/dispatches \
|
||||||
-d '{"event_type":"env-docker-preflight"}' \
|
-d '{"event_type":"env-docker-preflight","client_payload":{"image":"${{ env.PREFLIGHT_IMAGE }}"}}'
|
||||||
-d '{"client_payload": {"image":"${{ env.PREFLIGHT_IMAGE }}"}}'
|
|
||||||
- name: Slack Notification
|
- name: Slack Notification
|
||||||
if: ${{ always() }}
|
if: ${{ always() }}
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
@@ -90,9 +89,9 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Check build went well with preflight image
|
- name: Check build went well with preflight image
|
||||||
env:
|
env:
|
||||||
CHECKS_OK: ${{ github.event.client_payload.preflight_success }}
|
PREFLIGHT_STATUS: ${{ github.event.client_payload.preflight_status }}
|
||||||
run: |
|
run: |
|
||||||
if [[ "${CHECKS_OK}" == "false" ]]; then
|
if [[ "${PREFLIGHT_STATUS}" != "success" ]]; then
|
||||||
echo "Build with new image failed, aborting."
|
echo "Build with new image failed, aborting."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user