| 123456789101112131415161718192021222324252627282930313233343536373839404142 |
- "on":
- push:
- branches:
- - stacks-fix-cli-analytics-control
- name: Deploy to pls-work-1-control
- jobs:
- porter-deploy:
- runs-on: ubuntu-latest
- steps:
- - name: Checkout code
- uses: actions/checkout@v3
- - name: Setup Go
- uses: actions/setup-go@v4
- with:
- go-version-file: go.mod
- cache: false
- - name: Set Github tag
- id: vars
- run: echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
- - name: Install Porter
- timeout-minutes: 30
- run: /bin/bash -c "$(curl -fsSL https://install.porter.run)"
- - name: Login
- timeout-minutes: 30
- run: porter auth login --token $PORTER_TOKEN
- env:
- PORTER_CLUSTER: 2698
- PORTER_HOST: https://dashboard.getporter.dev
- PORTER_PROJECT: 7224
- PORTER_STACK_NAME: pls-work-1
- PORTER_TAG: ${{ steps.vars.outputs.sha_short }}
- PORTER_TOKEN: ${{ secrets.PORTER_STACK_1_2 }}
- - name: Deploy stack
- timeout-minutes: 30
- run: go run ./cli/main.go apply
- env:
- PORTER_CLUSTER: 2698
- PORTER_HOST: https://dashboard.getporter.dev
- PORTER_PROJECT: 7224
- PORTER_STACK_NAME: pls-work-1
- PORTER_TAG: ${{ steps.vars.outputs.sha_short }}
- PORTER_TOKEN: ${{ secrets.PORTER_STACK_1_2 }}
|