Guest User

Untitled

a guest
Feb 15th, 2019
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.79 KB | None | 0 0
  1. version: 2
  2. projects:
  3. - name: sandbox
  4. dir: .
  5. terraform_version: 0.11.11
  6. autoplan:
  7. enabled: true
  8. when_modified: ["*.tf*", "atlantis.yaml"]
  9. workspace: sandbox
  10. workflow: sandbox
  11. - name: dev
  12. dir: .
  13. terraform_version: 0.11.11
  14. autoplan:
  15. enabled: true
  16. when_modified: ["*.tf*", "atlantis.yaml"]
  17. workspace: dev
  18. workflow: test
  19. - name: test
  20. dir: .
  21. terraform_version: 0.11.11
  22. autoplan:
  23. enabled: true
  24. when_modified: ["*.tf*", "atlantis.yaml"]
  25. workspace: test
  26. workflow: test
  27. - name: prod
  28. dir: .
  29. terraform_version: 0.11.11
  30. apply_requirements: ["mergeable"]
  31. autoplan:
  32. enabled: true
  33. when_modified: ["*.tf*", "atlantis.yaml"]
  34. workspace: prod
  35. workflow: prod
  36. workflows:
  37. sandbox:
  38. plan:
  39. steps:
  40. - run: rm -rf .terraform
  41. - init:
  42. extra_args: ["-backend-config=sandbox.backend.tfvars", "-upgrade=true"]
  43. - run: terraform fmt -check
  44. - run: tflint
  45. - plan:
  46. extra_args: ["-var-file=$WORKSPACE.tfvars", "-lock=true"]
  47. apply:
  48. steps:
  49. - apply:
  50. extra_args: ["-lock=true"]
  51. test:
  52. plan:
  53. steps:
  54. - run: rm -rf .terraform
  55. - init:
  56. extra_args: ["-backend-config=test.backend.tfvars", "-upgrade=true"]
  57. - run: terraform fmt -check
  58. - run: tflint
  59. - plan:
  60. extra_args: ["-var-file=$WORKSPACE.tfvars", "-lock=true"]
  61. apply:
  62. steps:
  63. - apply:
  64. extra_args: ["-lock=true"]
  65. prod:
  66. plan:
  67. steps:
  68. - run: rm -rf .terraform
  69. - init:
  70. extra_args: ["-backend-config=prod.backend.tfvars", "-upgrade=true"]
  71. - run: terraform fmt -check
  72. - run: tflint
  73. - plan:
  74. extra_args: ["-var-file=$WORKSPACE.tfvars", "-lock=true"]
  75. apply:
  76. steps:
  77. - apply:
  78. extra_args: ["-lock=true"]
Add Comment
Please, Sign In to add comment