publish doesn't support general container images
Open
area/aca
feature
- Dominant language
- Go
- Stars
- 569
- Forks
- 364
- Avg merge
- 2d 19h
- Merged PRs (30d)
- 136
Description
Scenario: I have sidecar and init car containers that are built from source (Dockerfile) in my current repository. I like the simplified `publish` command for publishing images to ACR.
I tried to add a `predeploy` hook to publish these images to ACR:
```yaml
hooks:
predeploy:
run: |
docker build ../init-app -t init-app:latest
azd publish --from-package init-app:latest
```
This ended up creating a side effect of overriding `SERVICE_WEB_IMAGE_NAME` and I couldn't get it working as expected. I was blocked.
Should `azd publish` support more scenarios broadly than just publishing the "one image" defined as a service?
Contributor guide
Assessment
This issue has not been assessed yet.