Skip to content

Commit 8ff15aa

Browse files
Create porter_stack_demo.yml file (#12)
Co-authored-by: porter-sandbox-deployment-app[bot] <158510531+porter-sandbox-deployment-app[bot]@users.noreply.github.com>
1 parent 20ea01a commit 8ff15aa

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
"on":
2+
push:
3+
branches:
4+
- demo
5+
name: Deploy to demo
6+
jobs:
7+
porter-deploy:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Checkout code
11+
uses: actions/checkout@v3
12+
- name: Set Github tag
13+
id: vars
14+
run: echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
15+
- name: Setup porter
16+
uses: porter-dev/[email protected]
17+
- name: Deploy stack
18+
timeout-minutes: 30
19+
run: exec porter apply
20+
env:
21+
PORTER_CLUSTER: "1191"
22+
PORTER_DEPLOYMENT_TARGET_ID: cd217dd5-4f80-4a6b-a702-de2abc964920
23+
PORTER_HOST: https://cloud.porter.run
24+
PORTER_PR_NUMBER: ${{ github.event.number }}
25+
PORTER_PROJECT: "1278"
26+
PORTER_REPO_NAME: ${{ github.event.repository.name }}
27+
PORTER_STACK_NAME: demo
28+
PORTER_TAG: ${{ steps.vars.outputs.sha_short }}
29+
PORTER_TOKEN: ${{ secrets.PORTER_STACK_1278_1191 }}

0 commit comments

Comments
 (0)