-
Notifications
You must be signed in to change notification settings - Fork 239
56 lines (54 loc) · 1.56 KB
/
porter_stack_porter-sandbox.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
on:
push:
tags:
- production
name: Deploy to porter-cloud
jobs:
build-go:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: build-go
uses: ./.github/actions/build-go
build-npm:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: build-npm
uses: ./.github/actions/build-npm
with:
env_vars: ${{ vars.DASHBOARD_ENV_SANDBOX }}
porter-deploy:
runs-on: ubuntu-latest
needs: [build-go, build-npm]
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Get Go Binaries
uses: actions/download-artifact@v3
with:
name: go-binaries
path: bin/
- name: Get NPM static files
uses: actions/download-artifact@v3
with:
name: npm-static-files
path: build/
- name: Set Github tag
id: vars
run: echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
- name: Setup porter
uses: porter-dev/[email protected]
- name: Deploy stack
timeout-minutes: 30
run: exec porter apply -f ./porter.yaml --wait
env:
PORTER_CLUSTER: "11"
PORTER_HOST: https://dashboard.internal-tools.porter.run
PORTER_PR_NUMBER: ${{ github.event.number }}
PORTER_PROJECT: "8"
PORTER_STACK_NAME: porter-sandbox
PORTER_TAG: ${{ steps.vars.outputs.sha_short }}
PORTER_TOKEN: ${{ secrets.PORTER_STACK_8_11 }}