You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Azure DevOps pipeline definitions (and potentially GitHub Actions as well, but I haven't done much with them) allows for inputs to tasks and template parameters to be arrays.
Where possible, please consider switching to using this functionality, instead of whatever other style is used currently. It would mean the definition could look like this:
- task: DevcontainersCi@0inputs:
imageName: $(RegistryImage)# Currently imageTag is a comma separated listimageTag:
- $(VersionTag)
- ${{ if parameters.pushLatest }}:
- latestpush: filtersourceBranchFilterForPush: refs/heads/main# Currently cacheFrom requires a multi-line definitioncacheFrom:
- $(RegistryImage):latest
- $(RegistryImage):$(VersionTag)noCache: ${{ parameters.noCache }}
... instead of:
- task: DevcontainersCi@0inputs:
imageName: $(RegistryImage)${{ if parameters.pushLatest }}:
imageTag: $(VersionTag),latest${{ else }}:
imageTag: $(VersionTag)push: filtersourceBranchFilterForPush: refs/heads/main# To get multiple itemscacheFrom: | $(RegistryImage):latest $(RegistryImage):$(VersionTag)noCache: ${{ parameters.noCache }}
As an aside, there appears to be **no** documentation around how to pass multiple elements to `cacheFrom`. It doesn't complain if you pass a comma-separated list (somehow), but it only generates a single `--cache-from` argument, instead of a separate one for each image.
The text was updated successfully, but these errors were encountered:
Azure DevOps pipeline definitions (and potentially GitHub Actions as well, but I haven't done much with them) allows for inputs to tasks and template parameters to be arrays.
Where possible, please consider switching to using this functionality, instead of whatever other style is used currently. It would mean the definition could look like this:
... instead of:
As an aside, there appears to be **no** documentation around how to pass multiple elements to `cacheFrom`. It doesn't complain if you pass a comma-separated list (somehow), but it only generates a single `--cache-from` argument, instead of a separate one for each image.
The text was updated successfully, but these errors were encountered: