Your team publishes the inference-api image to Azure Container Registry and follows semantic versioning (MAJOR.MINOR.PATCH). The current release is 1.3.2. The new build adds a new, backward-compatible model endpoint. It was produced by pipeline run 4567 from Git commit abc123f.
Requirements:
- Consumers that reference
inference-api:1must receive the new release without changing their configuration. - Production deployments must reference a tag that is never reused and that links to both the pipeline run and the source commit.
Which set of tags should you apply to the new image?
In semantic versioning, a backward-compatible new feature increments MINOR, so 1.3.2 becomes 1.4.0. Moving the stable major-version tag 1 to the new image gives automatic updates to consumers that reference inference-api:1. Production needs a unique tag that is never reused, and combining the version, build ID and commit SHA in one tag links the image to both the pipeline run and the source code.
- Not correct:
1,1.3, and1.3.3-build4567-abc123f. PATCH is for bug fixes and security patches. A new backward-compatible feature requires a MINOR increment, not 1.3.3. - Not correct:
1.4,1.4.0, and1.4.0-build4567-abc123f. The stable1tag is not moved to the new image. Consumers that referenceinference-api:1would therefore keep pulling the previous image. - Not correct:
2,2.0, and2.0.0-build4567-abc123f. MAJOR is incremented only for breaking changes. Tagging the build 2.x also means consumers that referenceinference-api:1would not receive it. - Correct:
1,1.4, and1.4.0-build4567-abc123f. A backward-compatible feature increments MINOR, so the version is 1.4.0. Moving the stable1tag givesinference-api:1consumers the update. The combined tag is unique and includes both the build ID and the commit SHA. - Not correct:
1,1.4, andlatest.latest,1, and1.4are all stable tags that move with later pushes. None of them is unique or carries the build ID and commit SHA.