Skip to content

Commit

Permalink
Only label default branch as latest
Browse files Browse the repository at this point in the history
Do not use the latest tag for any images published in PRs.
  • Loading branch information
martincostello committed Apr 29, 2024
1 parent 695fa11 commit cce0295
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/API/API.csproj
Expand Up @@ -23,7 +23,8 @@
<PublishSelfContained>true</PublishSelfContained>
</PropertyGroup>
<PropertyGroup Condition=" '$(CI)' == 'true' ">
<ContainerImageTags>github-$(GITHUB_RUN_NUMBER);latest</ContainerImageTags>
<ContainerImageTags>github-$(GITHUB_RUN_NUMBER)</ContainerImageTags>
<ContainerImageTags Condition=" '$(GITHUB_HEAD_REF)' == '' ">$(ContainerImageTags);latest</ContainerImageTags>
<ContainerRepository>$(GITHUB_REPOSITORY)</ContainerRepository>
<ContainerTitle>$(GITHUB_REPOSITORY)</ContainerTitle>
<ContainerVendor>$(GITHUB_REPOSITORY_OWNER)</ContainerVendor>
Expand Down

0 comments on commit cce0295

Please sign in to comment.