Environment provider settings on appveyor.yml
I use environments to deploy applications via the agent. I wanted to know if it is possible to set provider specific settings via the appveyor.yml. For example, I'd like to set an artifact to be deployed. What I'd like to be able to do is something like the following.
deploy:
- provider: Environment
name: Testing
on:
branch: master
MyApp.deploy_site: true
MyApp.site_name: My site name
The documentation is a little vague in this area
Comments are currently closed for this discussion. You can start a new one.
Keyboard shortcuts
Generic
? | Show this help |
---|---|
ESC | Blurs the current field |
Comment Form
r | Focus the comment reply box |
---|---|
^ + ↩ | Submit the comment |
You can use Command ⌘
instead of Control ^
on Mac
Support Staff 1 Posted by Feodor Fitsner on 13 Nov, 2014 05:30 PM
I see. Well, you can't specify provider settings in YML, but you can set their values through environment variables.
Say, you can have configured on environment properties screen the following setting:
where
$(site_name)
is the name of environment variable that could be defined a) during the build or b) in "Environment variables" section of environment (default value).For example:
This way when
Environment
deployment is called all environment variables from build context will be passed to deployment provider and available for substitution.Let me know if you have any questions.
James Toyer closed this discussion on 10 Feb, 2015 02:13 PM.