Skip to content

ci: trigger azure build for platform-api cloud image on merge - #3283

Merged
renuka-fernando merged 2 commits into
wso2:platform-api/v0.10.xfrom
renuka-fernando:platform-api-v0.10.x-workflow
Aug 21, 2026
Merged

ci: trigger azure build for platform-api cloud image on merge#3283
renuka-fernando merged 2 commits into
wso2:platform-api/v0.10.xfrom
renuka-fernando:platform-api-v0.10.x-workflow

Conversation

@renuka-fernando

Copy link
Copy Markdown
Contributor

Purpose

The platform-api cloud image is moving off GitHub Actions/GHCR. Building and pushing the image to the internal control-plane ACR is now owned by an Azure DevOps pipeline, so this workflow should stop building the image and instead trigger that pipeline on merge.

Goals

  • Stop building and pushing the cloud image to GHCR from GitHub Actions.
  • Trigger the Azure DevOps pipeline (which builds via make cloud-build and pushes to the control-plane ACR) whenever a PR is merged into a release branch.

Approach

  • Replace the GHCR build-and-push job with a single job that POSTs an HMAC-SHA1-signed payload (repositoryUrl, branch) to an Azure DevOps incoming webhook.
  • Fire on pull_request closed (merged only) into main and platform-api/v0.10.x, plus workflow_dispatch; path-filtered to platform-api/**, common/**, httpkit/**, and the workflow file itself.
  • Keep the workflow file identical across release branches, since pull_request runs the workflow from the PR's base branch.
  • Requires repository secrets AZURE_WEBHOOK_URL and AZURE_WEBHOOK_SECRET.

User stories

N/A

Documentation

N/A - CI-only change, no product documentation impact.

Automation tests

  • Unit tests

    N/A - GitHub Actions workflow change only.

  • Integration tests

    N/A

Security checks

  • Followed secure coding standards in http://wso2.com/technical-reports/wso2-secure-engineering-guidelines? yes
  • Ran FindSecurityBugs plugin and verified report? N/A (no source changed; workflow YAML only)
  • Confirmed that this PR doesn't commit any keys, passwords, tokens, usernames, or other secrets? yes (uses the AZURE_WEBHOOK_URL / AZURE_WEBHOOK_SECRET GitHub secrets)

Samples

On merge, the workflow signs and POSTs { "repositoryUrl": ..., "branch": ... } to the Azure webhook; the pipeline clones the branch HEAD, runs make cloud-build, and pushes choreocontrolplane.azurecr.io/choreoipaas/platform-api:<branch>-<commit>.

Related PRs

Test environment

N/A - GitHub Actions (ubuntu-latest).

Replace the GHCR cloud-image build/push with a job that calls an
Azure DevOps pipeline's incoming webhook; the Azure pipeline now
builds the single-arch cloud image and pushes it to the ACR.

Fires on merges into main and platform-api/v0.10.x (plus manual
workflow_dispatch). The webhook payload is HMAC-SHA1 signed and
requires the AZURE_WEBHOOK_URL and AZURE_WEBHOOK_SECRET secrets.

Signed-off-by: Renuka Fernando <renukapiyumal@gmail.com>
@coderabbitai

coderabbitai Bot commented Aug 21, 2026

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 19486f1e-567d-4959-8c1b-ec178519af5b

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

Add --connect-timeout/--max-time so a stalled Azure endpoint can't
keep the release job hanging and block later runs in the same
concurrency group.

Addresses CodeRabbit review on wso2#3282.

Signed-off-by: Renuka Fernando <renukapiyumal@gmail.com>
@renuka-fernando
renuka-fernando merged commit f4556fe into wso2:platform-api/v0.10.x Aug 21, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants