From de12c8e5f81efc9ef90378d0f57ef3ad89c2358f Mon Sep 17 00:00:00 2001 From: "porter-deployment-app[bot]" <87230664+porter-deployment-app[bot]@users.noreply.github.com> Date: Tue, 25 Jun 2024 20:23:33 +0000 Subject: [PATCH] Create porter_preview_env.yml file --- .github/workflows/porter_preview_env.yml | 45 ++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 .github/workflows/porter_preview_env.yml diff --git a/.github/workflows/porter_preview_env.yml b/.github/workflows/porter_preview_env.yml new file mode 100644 index 0000000..2a080fd --- /dev/null +++ b/.github/workflows/porter_preview_env.yml @@ -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/porter-preview-action@v0.2.1 + 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 }}