porter_preview_env.yml 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. "on":
  2. workflow_dispatch:
  3. inputs:
  4. pr_branch_from:
  5. description: Pull request head branch
  6. required: true
  7. type: string
  8. pr_branch_into:
  9. description: Pull request base branch
  10. required: true
  11. type: string
  12. pr_number:
  13. description: Pull request number
  14. required: true
  15. type: string
  16. pr_title:
  17. description: Pull request title
  18. required: true
  19. type: string
  20. name: Porter Preview Environment
  21. jobs:
  22. porter-preview:
  23. runs-on: ubuntu-latest
  24. steps:
  25. - name: Checkout code
  26. uses: actions/checkout@v2.3.4
  27. - name: Create Porter preview env
  28. timeout-minutes: 30
  29. uses: porter-dev/porter-preview-action@dev
  30. with:
  31. action_id: ${{ github.run_id }}
  32. cluster: "2489"
  33. host: https://dashboard.getporter.dev
  34. installation_id: "18533943"
  35. namespace: pr-${{ github.event.inputs.pr_number }}-porter
  36. pr_branch_from: ${{ github.event.inputs.pr_branch_from }}
  37. pr_branch_into: ${{ github.event.inputs.pr_branch_into }}
  38. pr_id: ${{ github.event.inputs.pr_number }}
  39. pr_name: ${{ github.event.inputs.pr_title }}
  40. project: "6680"
  41. repo_name: porter
  42. repo_owner: porter-dev
  43. token: ${{ secrets.PORTER_PREVIEW_6680_2489 }}
  44. concurrency:
  45. group: ${{ github.workflow }}-${{ github.event.inputs.pr_number }}