Skip to content

Dev => Staging

Dev => Staging #8

name: 🧪🚀 Test Cloud Build & Deploy
on:
workflow_dispatch: # Manual trigger fallback
pull_request:
paths:
- "cloud/**"
- ".github/workflows/porter-cloud-test.yml"
branches:
- main
- dev
- staging
jobs:
porter-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set Git SHA tag
id: vars
run: echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
- name: Setup Porter CLI
uses: porter-dev/[email protected]
- name: Deploy stack to Production
timeout-minutes: 30
run: exec porter apply -f ./cloud/porter.yaml
env:
PORTER_APP_NAME: cloud-test
PORTER_NAMESPACE: test
NODE_ENV: test
PORTER_CLUSTER: "4753"
PORTER_PROJECT: "15081"
PORTER_HOST: https://dashboard.porter.run
PORTER_PR_NUMBER: ${{ github.event.number }}
PORTER_REPO_NAME: ${{ github.event.repository.name }}
PORTER_TAG: ${{ steps.vars.outputs.sha_short }}
PORTER_TOKEN: ${{ secrets.PORTER_APP_15081_4753 }}