Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions .github/workflows/porter-app-1-backend.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
"on":
push:
branches:
- main
name: Deploy to backend
jobs:
porter-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set Github tag
id: vars
run: echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
- name: Setup porter
uses: porter-dev/setup-porter@v0.1.0
- name: Deploy stack
timeout-minutes: 30
run: porter apply
env:
PORTER_APP_NAME: backend
PORTER_CLUSTER: "1"
PORTER_DEPLOYMENT_TARGET_ID: 636c38a8-5a10-4eed-b662-e55d94ccc9f0
PORTER_HOST: https://gil.withporter.run
PORTER_PROJECT: "1"
PORTER_TAG: ${{ steps.vars.outputs.sha_short }}
PORTER_TOKEN: ${{ secrets.PORTER_APP_1_1037438817 }}
27 changes: 27 additions & 0 deletions .github/workflows/porter-app-1-frontend.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
"on":
push:
branches:
- main
name: Deploy to frontend
jobs:
porter-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set Github tag
id: vars
run: echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
- name: Setup porter
uses: porter-dev/setup-porter@v0.1.0
- name: Deploy stack
timeout-minutes: 30
run: porter apply
env:
PORTER_APP_NAME: frontend
PORTER_CLUSTER: "1"
PORTER_DEPLOYMENT_TARGET_ID: 636c38a8-5a10-4eed-b662-e55d94ccc9f0
PORTER_HOST: https://gil.withporter.run
PORTER_PROJECT: "1"
PORTER_TAG: ${{ steps.vars.outputs.sha_short }}
PORTER_TOKEN: ${{ secrets.PORTER_APP_1_1037438817 }}
Loading