Skip to content

Gate API image publish on successful build - #374

Merged
dkhalife merged 1 commit into
mainfrom
dkhalife-gate-go-image-jobs
Aug 18, 2026
Merged

Gate API image publish on successful build#374
dkhalife merged 1 commit into
mainfrom
dkhalife-gate-go-image-jobs

Conversation

@dkhalife

Copy link
Copy Markdown
Collaborator

Summary

  • make the API canary image stage depend on the Go build stage
  • publish only after a successful build while continuing to skip pull requests

Copilot AI lite review requested due to automatic review settings August 18, 2026 04:19

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the Azure DevOps API pipeline so the canary image publish stage only runs after the Go build stage has completed successfully, while still skipping image publishing for pull request builds.

Changes:

  • Add an explicit dependsOn: build to the push_canary stage to ensure it waits for the build stage.
  • Gate the canary image job with and(succeeded(), ne(variables['Build.Reason'], 'PullRequest')) so it publishes only on successful non-PR runs.
Show a summary per file
File Description
.azuredevops/api-build.yml Ensures canary image publishing is dependent on a successful build and remains disabled for PRs.

Review details

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

  • Files reviewed: 1/1 changed files
  • Comments generated: 0
  • Review effort level: Lite

@dkhalife
dkhalife merged commit d635450 into main Aug 18, 2026
10 checks passed
@dkhalife
dkhalife deleted the dkhalife-gate-go-image-jobs branch August 18, 2026 04:21
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