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
Is your feature request related to a problem? Please describe.
It is cumbersome to maintain logic/scripts to update image repository, tag, and/or digest values in the porter.yaml file within a pipeline when the logic could be simplified if the porter CLI allowed setting these values with --custom arguments.
Scenario:
A pipeline builds an application and creates/pushes/tags a docker image for that application.
A subsequent stage of the pipeline creates a porter bundle that includes this image.
In order for the bundle to include the proper image, the porter.yaml must be updated with the tag used in the first stage of the pipeline run.
The next stage uses the porter bundle to deploy the application and dependencies in a temporary environment for an end-to-end test.
Describe alternatives you've considered
We currently use a script to modify the porter.yaml file before creating porter bundles.
Additional context
Example porter.yaml snippet that would allow the custom application image tag to be updated with a custom argument.
name: mybundlecustom:
powershellImageTag: latest # 7.3.6, 7.3.5, 7.2.13myCustomAppImageTag: 1.2.3.4myCustomAppImageRepoProject: mainimages:
powershell:
description: Basic PowerShell docker image... usually "latest", but not alwaysrepository: mcr.microsoft.com/powershelltag: ${ bundle.custom.powershellImageTag }my-custom-application:
description: My custom application image where image tag changes with every build pipeline run, and repo path can vary depending on which branch the code was built from.repository: myacr.azurecr.io/${ bundle.custom.myCustomAppImageRepoProject }/my-custom-apptag: ${ bundle.custom.myCustomAppImageTag }
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
--custom
arguments.Describe the solution you'd like
Describe alternatives you've considered
We currently use a script to modify the porter.yaml file before creating porter bundles.
Additional context
Example porter.yaml snippet that would allow the custom application image tag to be updated with a custom argument.
The text was updated successfully, but these errors were encountered: