Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

First, create azure-pipelines.yml file in the root directory of your project.

For each partition you want to use the automatic deployment for, there will be a block like:

trigger:
- qa
steps:
- script: docker run pricefx/pfxpackage pfxpackage -import -timeout 120 -url ${URL} -user ${PFX_USER} -password $(PFX_PASS) -partition ${PARTITION} -from . ${OPTIONS}
  displayName: 'Deploy QA'
  env:
    PARTITION: partition-qa
    URL: https://qa.pricefx.eu

Notes:

  1. You should set the name of the job to correspond to your partition, eg. Deploy QA or Deploy PROD

  2. You must set the PARTITION and URL variables for your environment

  3. You must set which branch to use for the source under trigger section

  4. PFX_USER and PFX_PASS CI variables must be set up by Azure admin as

    • Set PFX_USER to 'pfx.deploy' and PFX_PASS to a strong password (at least 14 characters, at least 1 digit, at least 1 capital letter).

    • Create a user account 'pfx.deploy' which has General Admin privileges in each of the partitions where you want to enable deployment and set the password identical to the PFX_PASS variable.

  • No labels