Skip to content

feat: added image tag related changes.#180

Merged
Prajwal-Microsoft merged 4 commits intodevfrom
psl-imagetag-changes
Jun 6, 2025
Merged

feat: added image tag related changes.#180
Prajwal-Microsoft merged 4 commits intodevfrom
psl-imagetag-changes

Conversation

@VishalS-Microsoft
Copy link
Copy Markdown
Contributor

Purpose

This pull request introduces support for specifying an image tag (AZURE_ENV_IMAGETAG) for container deployments, allowing greater flexibility in managing container versions. Changes span across configuration files, documentation, deployment scripts, and infrastructure definitions to integrate this new parameter.

Feature Addition: Image Tag Support

  • Configuration Updates:

    • Added AZURE_ENV_IMAGETAG parameter to infra/container_app/deploy_container_app_api_web.bicep and updated its usage in container deployment modules to replace hardcoded 'latest' tags with dynamic values. [1] [2] [3] [4]
    • Introduced imageTag parameter in infra/main.bicep and passed it to relevant modules. [1] [2] [3]
    • Added support for reading AZURE_ENV_IMAGETAG from environment variables in infra/main.bicepparam.
  • Script Enhancements:

    • Updated docker-build.ps1 to accept and utilize the AZURE_ENV_IMAGETAG parameter for constructing image URIs. [1] [2]
    • Modified docker-build.sh to include AZURE_ENV_IMAGETAG in argument validation and image URI construction. [1] [2] [3]

Documentation Updates

  • Parameter Documentation:

    • Added AZURE_ENV_IMAGETAG description to docs/CustomizingAzdParameters.md, specifying allowed values (latest, dev, hotfix).
    • Updated deployment settings table in docs/DeploymentGuide.md to include the new Image Tag parameter.
  • Structural Changes:

    • Removed redundant section headers to streamline deployment settings documentation in docs/DeploymentGuide.md.

Configuration File Adjustments

  • Azure YAML:
    • Incorporated AZURE_ENV_IMAGETAG into preprovision hooks for both POSIX and Windows environments.

Does this introduce a breaking change?

  • Yes
  • No

Golden Path Validation

  • I have tested the primary workflows (the "golden path") to ensure they function correctly without errors.

Deployment Validation

  • I have validated the deployment process successfully and all services are running as expected with this change.

What to Check

Verify that the following are valid

  • ...

Other Information

Copy link
Copy Markdown
Collaborator

@Prajwal-Microsoft Prajwal-Microsoft left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not correct, it should be added before log redirection

Comment thread azure.yaml Outdated
@Prajwal-Microsoft Prajwal-Microsoft merged commit 664c285 into dev Jun 6, 2025
5 checks passed
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jun 9, 2025

🎉 This PR is included in version 1.5.2 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@Prajwal-Microsoft Prajwal-Microsoft deleted the psl-imagetag-changes branch June 25, 2025 05:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants