Skip to content

Latest commit

 

History

History
35 lines (27 loc) · 4.82 KB

deploy-sfdx-project-to-developer.md

File metadata and controls

35 lines (27 loc) · 4.82 KB

deploy-sfdx-project-to-developer.yml

Source: deploy-sfdx-project-to-developer.yml

Usage

jobs:
  deploy:
    uses: wtaxco/wtax-github-actions-workflows/.github/workflows/deploy-sfdx-project-to-developer.yml@main
    with:
      run-tests: ${{ inputs.run-tests == null || inputs.run-tests }}
    secrets:
      ansible-vault-password: ${{ secrets.VAULT_PASSWORD }}

Inputs and secrets

Name Input / secret Type Description Default
sonar-url Input string URL of the Sonar server to use for analyzing the code. If omitted, the WTax Sonar server at sonar.wtax.co will be used. The sonar-login secret should hold a valid access token or username:password combination for this server. https://sonar.wtax.co
sonar-login Secret string Access token or username:password combination for the Sonar server specified in the sonar-url input.
instance-url Input string Salesforce instance URL to deploy to ("the target org") https://login.salesforce.com
client-id Input string OAuth client ID (sometimes called consumer key) of the connected app on Salesforce used to connect to the target org 3MVG9mVMtbWMH6luwQZnh1UwupxQxoca6H4Yu0gvsxQS7_yo6HdV00CFOw60m0aJFr6FvvHx9CwsTjg5Ybi_T
jwt-key-encrypted Input string Ansible Vault-encrypted private key to connect to the Dev Hub org with using the JWT flow (this should be encrypted using ansible-vault encrypt, NOT ansible-vault encrypt_string!) <>
username Input string Username of Salesforce user to authenticate as; must have permission to depoy metadata admin@wtax.prod.developer
run-tests Input boolean Whether to run tests as part of the deployment. This is required when deploying to a production org. true
destructive-changes-after-deployment Input boolean Instruct Salesforce to apply destructive changes (i.e. deletes) after the deployment. This is the default. In some cases you may want to apply destructive changes before deploying. In that case, set this input to false. true
ansible-vault-password Secret string Password to be used to decrypt values encrypted by Ansible Vault. Can be omitted if no Ansible Vault encrypted values are in the playbook or inventory.

Jobs

This workflow has on jobs:

  • deploy - calls the deploy-sfdx-project.yml workflow with sensible defaults for the inputs to deploy to the developer sandbox