Skip to content
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

variable support in porter.yaml #814

Closed
ffoysal opened this issue Nov 26, 2019 · 2 comments
Closed

variable support in porter.yaml #814

ffoysal opened this issue Nov 26, 2019 · 2 comments
Labels
enhancement New code incoming!

Comments

@ffoysal
Copy link

ffoysal commented Nov 26, 2019

Is there a way to do variable references in porter.yaml file. for example in the porter.yaml

name: SampleApp
version: 0.1.0
description: "Sample app cnab bundle"
invocationImage: ffoysal/hello-invocation:0.1.0
tag: ffoysal/hello-bundle:0.1.0

in this code snippet if we could declare 0.1.0 in variable and reference that in three places would be good for us.

@carolynvs
Copy link
Member

We don't have variable support yet. That would come in #1002. However the invocationImage field is optional now (and will be deprecated in the next release) and the tag no longer requires you to put the version in it, so the manifest can now look like this

name: SampleApp
version: 0.1.0
description: "Sample app cnab bundle"
tag: ffoysal/hello-bundle

Vaughn is working on defaulting the tag as well in a new enhancement proposal too. But I hope this helps for your current bundles!

@carolynvs carolynvs added this to the 1.0 milestone Nov 3, 2020
@carolynvs carolynvs added the enhancement New code incoming! label Nov 3, 2020
@carolynvs carolynvs modified the milestones: 1.0, Manifest Syntax May 10, 2021
@carolynvs
Copy link
Member

Closing now that we have workarounds for most of this, such as porter build --version --name, porter publish --registry --tag --reference, and the ability to set custom metadata and reference it with templating (#1899).

If there is additional scenarios we need to support, let's open a new issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New code incoming!
Projects
None yet
Development

No branches or pull requests

2 participants