dotnet / dotnet/sdk

dotnet publish: AfterTargets="AfterPublish" triggers before publish is complete

Open
#46,999 17 comments 0 reactions 0 assignees View on GitHub
Area-NetSDK
Dominant language
C#
Stars
3.2k
Forks
1.3k
PR merge metrics
PR metrics pending

Description

Hello we have a project like many others publishing docker images to kubernetes.

To try to make developers life easier I added the following to my pubxml:

```


...snip...






```

However, I notice the RestartPods target occurs before the image is fully published to my ACR, resulting in a race condition that sometimes Kubernetes beats, meaning the old image is deployed instead of the new...

What should my AfterTargets be set to if I want it to only run the rollout commands after the container is fully published to ACR?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.