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

Fn CLI to support variables / environment variable substitution #677

Open
vamshikrishna83 opened this issue Nov 28, 2023 · 0 comments
Open

Comments

@vamshikrishna83
Copy link

I am unable to find a way to control and set APP_VERSION outside of func.yaml and pass it on as either environment variable or other means to make fn build pick up this version and tag docker image with that version.

I have tried both the below options, but was not able to find a way where version could be passed on as value.

schema_version: 20180708
name: image_name
version: '{{ env:APP_VERSION }}'
runtime: docker
schema_version: 20180708
name: image_name
version: ${APP_VERSION}
runtime: docker

Is there support to define and use environment variables in func.yaml files. If so, please provide some details on how to get this working for version and other values as well.

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

No branches or pull requests

1 participant