Skip to content

Commit

Permalink
Create porter_preview_env.yml file
Browse files Browse the repository at this point in the history
  • Loading branch information
porter-deployment-app[bot] authored Jun 25, 2024
1 parent b8f3c2d commit de12c8e
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/porter_preview_env.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
"on":
workflow_dispatch:
inputs:
pr_branch_from:
description: Pull request head branch
required: true
type: string
pr_branch_into:
description: Pull request base branch
required: true
type: string
pr_number:
description: Pull request number
required: true
type: string
pr_title:
description: Pull request title
required: true
type: string
name: Porter Preview Environment
jobs:
porter-preview:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Create Porter preview env
timeout-minutes: 30
uses: porter-dev/[email protected]
with:
action_id: ${{ github.run_id }}
cluster: "1757"
host: https://dashboard.porter.run
installation_id: "18533943"
namespace: pr-${{ github.event.inputs.pr_number }}-js-test-app
pr_branch_from: ${{ github.event.inputs.pr_branch_from }}
pr_branch_into: ${{ github.event.inputs.pr_branch_into }}
pr_id: ${{ github.event.inputs.pr_number }}
pr_name: ${{ github.event.inputs.pr_title }}
project: "2611"
repo_name: js-test-app
repo_owner: porter-dev
token: ${{ secrets.PORTER_PREVIEW_2611_1757 }}
concurrency:
group: ${{ github.workflow }}-${{ github.event.inputs.pr_number }}

0 comments on commit de12c8e

Please sign in to comment.