Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
fa87ae5a36
|
@@ -289,3 +289,13 @@ jobs:
|
|||||||
chmod +x /usr/local/bin/cosign 2>/dev/null || true
|
chmod +x /usr/local/bin/cosign 2>/dev/null || true
|
||||||
cosign sign --yes --key env://COSIGN_KEY "$IMAGE:latest" || echo "::warning::cosign failed"
|
cosign sign --yes --key env://COSIGN_KEY "$IMAGE:latest" || echo "::warning::cosign failed"
|
||||||
docker push "$IMAGE:${GITHUB_SHA}"
|
docker push "$IMAGE:${GITHUB_SHA}"
|
||||||
|
- name: Trigger orca redeploy
|
||||||
|
run: |
|
||||||
|
PAYLOAD=$(printf '{"ref":"refs/heads/main","repository":{"full_name":"sharang/certifai"},"head_commit":{"id":"%s","message":"CI deploy"}}' "${GITHUB_SHA}")
|
||||||
|
SIG=$(printf '%s' "$PAYLOAD" | openssl dgst -sha256 -hmac "${{ secrets.ORCA_WEBHOOK_SECRET }}" | awk '{print $2}')
|
||||||
|
echo "Calling orca webhook for sharang/certifai@${GITHUB_SHA}"
|
||||||
|
RESP=$(curl -fsS -w "\nHTTP %{http_code}" -X POST "http://46.225.100.82:6880/api/v1/webhooks/github" \
|
||||||
|
-H "Content-Type: application/json" \
|
||||||
|
-H "X-Hub-Signature-256: sha256=$SIG" \
|
||||||
|
-d "$PAYLOAD")
|
||||||
|
echo "$RESP"
|
||||||
Reference in new issue
Block a user