Merge pull request #787 from phospho-app/dev #116
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
name: "Porter - Deployer backend" | |
jobs: | |
porter-deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Copy phospho-python in backend folder | |
run: | | |
cp -r phospho-python backend/phospho-python | |
- 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: exec porter apply | |
env: | |
PORTER_CLUSTER: 4032 | |
PORTER_HOST: https://dashboard.getporter.dev | |
PORTER_PROJECT: 12852 | |
PORTER_STACK_NAME: phospho-backend | |
PORTER_TAG: ${{ steps.vars.outputs.sha_short }} | |
PORTER_TOKEN: ${{ secrets.PORTER_STACK_12852_4032 }} | |
PORTER_DEPLOYMENT_TARGET_ID: 6214be60-2137-4c0c-937e-21b2a88e0a9b |