From d6d84eb56fa11b4991906bf51ec60ffb2260218f Mon Sep 17 00:00:00 2001 From: "porter-deployment-app[bot]" <87230664+porter-deployment-app[bot]@users.noreply.github.com> Date: Mon, 9 Oct 2023 16:09:31 +0000 Subject: [PATCH] Create porter_stack_github.yml file --- .github/workflows/porter_stack_github.yml | 26 +++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/porter_stack_github.yml diff --git a/.github/workflows/porter_stack_github.yml b/.github/workflows/porter_stack_github.yml new file mode 100644 index 00000000..59704299 --- /dev/null +++ b/.github/workflows/porter_stack_github.yml @@ -0,0 +1,26 @@ +"on": + push: + branches: + - porter +name: Deploy to github +jobs: + porter-deploy: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v3 + - name: Set Github tag + id: vars + run: echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT + - name: Deploy stack + timeout-minutes: 30 + uses: porter-dev/porter-cli-action@v0.1.0 + with: + command: apply -f ./porter.yaml + env: + PORTER_CLUSTER: "3081" + PORTER_HOST: https://dashboard.getporter.dev + PORTER_PROJECT: "8975" + PORTER_STACK_NAME: github + PORTER_TAG: ${{ steps.vars.outputs.sha_short }} + PORTER_TOKEN: ${{ secrets.PORTER_STACK_8975_3081 }}