Azure / Azure/azure-dev

publish doesn't support general container images

Open
#5,865 2 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.