-
Notifications
You must be signed in to change notification settings - Fork 249
Separate publishing to container registries with new azd publish
command
#5663
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 31 commits
Commits
Show all changes
41 commits
Select commit
Hold shift + click to select a range
f09bf45
Add `--publish-only` flag to `azd deploy`
JeffreyCA ecc7302
Create `azd publish` as alias
JeffreyCA cb67366
Change title depending on command
JeffreyCA 03731aa
Update
JeffreyCA 5ef2f72
Add `--image` and `--tag` flags
JeffreyCA 5b33319
Clean up
JeffreyCA edb49e8
Support remote build
JeffreyCA 7c5b859
Add validation
JeffreyCA e3b780e
Fix test
JeffreyCA d14d90d
Update cspell
JeffreyCA 56946a4
Fix lll
JeffreyCA 2ac3f50
Fix tests
JeffreyCA 9eada61
Remove redundant return
JeffreyCA 589d212
Fix edge case parsing image tag
JeffreyCA fdd83d0
Update help text
JeffreyCA 4c53c10
Refactor publish command
JeffreyCA bc44805
Include Publish details in ServiceDeployResult and Package details in…
JeffreyCA c9f6f85
Fix header
JeffreyCA fdc3880
Revert some changes
JeffreyCA 40868c7
Update text
JeffreyCA 0d764f5
Fix test
JeffreyCA 5454ce8
Update tests
JeffreyCA 5a5e4ec
Fix test
JeffreyCA 70f4c3c
Fix Aspire case
JeffreyCA c4f296f
Update recordings
JeffreyCA 92b6557
Add ACA functional test and recordings
JeffreyCA 8cd1a94
Support --from-package with --image and --tag
JeffreyCA e9ad834
Update warning message
JeffreyCA 35bfdc9
Fix lint
JeffreyCA afb3461
Fix test
JeffreyCA 4da2b75
Update comment
JeffreyCA cf06251
Replace --image and --tag with --to and remove --force-publish
JeffreyCA 0849c50
Revert recording changes
JeffreyCA 1797d17
Update test recordings
JeffreyCA 572558b
Update recordings
JeffreyCA 94e260f
Update recordings
JeffreyCA 3d6d7b2
Update recording
JeffreyCA 2b89a0b
Update help text and revert unneeded change
JeffreyCA f952042
Update help text
JeffreyCA 3658301
Address feedback and run `mod tidy`
JeffreyCA a8bd4b1
Update snapshot
JeffreyCA File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,7 @@ words: | |
- azcloud | ||
- azdext | ||
- azurefd | ||
- azcontainerregistry | ||
- backoff | ||
- Canonicalize | ||
- chinacloudapi | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
|
||
Publish a service to a container registry. | ||
|
||
• Supports Container App services only. | ||
• Target registry set by AZURE_CONTAINER_REGISTRY_ENDPOINT environment variable or docker.registry in azure.yaml. | ||
JeffreyCA marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
• Use '--from-package' to publish an existing container image, otherwise azd automatically packages the container image before publishing. | ||
|
||
Usage | ||
azd publish <service> [flags] | ||
|
||
Flags | ||
--all : Deploys all services that are listed in azure.yaml | ||
-e, --environment string : The name of the environment to use. | ||
--from-package string : Publishes the service from a container image (image tag). | ||
--image string : Specifies a custom image name for the container published to the registry. | ||
--tag string : Specifies a custom tag for the container image published to the registry. | ||
|
||
Global Flags | ||
-C, --cwd string : Sets the current working directory. | ||
--debug : Enables debugging and diagnostics logging. | ||
--docs : Opens the documentation for azd publish in your web browser. | ||
-h, --help : Gets help for publish. | ||
--no-prompt : Accepts the default value instead of prompting, or it fails if there is no default. | ||
|
||
Examples | ||
Publish all services in the current project. | ||
azd publish --all | ||
|
||
Publish the service named 'api' from a previously generated package. | ||
azd publish api --from-package <image-tag> | ||
|
||
Publish the service named 'api' with image name 'app/api' and tag 'prod'. | ||
azd publish api --image app/api --tag prod | ||
|
||
Publish the service named 'api'. | ||
azd publish api | ||
|
||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.