Skip to content

Commit bd83141

Browse files
authored
Update production.yml (#4367)
1 parent 51c3176 commit bd83141

File tree

1 file changed

+45
-2
lines changed

1 file changed

+45
-2
lines changed

.github/workflows/production.yml

Lines changed: 45 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,51 @@ jobs:
7171
- name: Set Github tag
7272
id: vars
7373
run: echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
74-
- name: Update Porter API
74+
75+
- name: Build Image
7576
timeout-minutes: 20
76-
uses: porter-dev/[email protected]
77+
uses: porter-dev/[email protected]
78+
with:
79+
command: update build --app porter-ui --tag ${{ steps.vars.outputs.sha_short }} --stream
80+
env:
81+
PORTER_HOST: https://dashboard.internal-tools.porter.run
82+
PORTER_CLUSTER: 9
83+
PORTER_PROJECT: 5
84+
PORTER_TOKEN: ${{ secrets.PORTER_PRODUCTION_DEPLOYMENT }}
85+
86+
- name: Push Image
87+
timeout-minutes: 20
88+
uses: porter-dev/[email protected]
89+
with:
90+
command: update push --app porter-ui --tag ${{ steps.vars.outputs.sha_short }} --stream
91+
env:
92+
PORTER_HOST: https://dashboard.internal-tools.porter.run
93+
PORTER_CLUSTER: 9
94+
PORTER_PROJECT: 5
95+
PORTER_TOKEN: ${{ secrets.PORTER_PRODUCTION_DEPLOYMENT }}
96+
97+
- name: Update Porter Migration Job
98+
timeout-minutes: 20
99+
uses: porter-dev/[email protected]
100+
with:
101+
command: update config --app migrate --tag ${{ steps.vars.outputs.sha_short }} --stream
102+
env:
103+
PORTER_HOST: https://dashboard.internal-tools.porter.run
104+
PORTER_CLUSTER: 9
105+
PORTER_PROJECT: 5
106+
PORTER_TOKEN: ${{ secrets.PORTER_PRODUCTION_DEPLOYMENT }}
107+
108+
- name: Run Migration Job
109+
uses: porter-dev/[email protected]
110+
with:
111+
job: migrate
112+
cluster: 9
113+
project: 5
114+
token: ${{ secrets.PORTER_PRODUCTION_DEPLOYMENT }}
115+
116+
- name: Update Porter Server
117+
timeout-minutes: 20
118+
uses: porter-dev/[email protected]
77119
with:
78120
app: porter-ui
79121
cluster: "9"
@@ -82,6 +124,7 @@ jobs:
82124
project: "5"
83125
tag: ${{ steps.vars.outputs.sha_short }}
84126
token: ${{ secrets.PORTER_PRODUCTION_DEPLOYMENT }}
127+
85128
- name: Update Porter Auth
86129
timeout-minutes: 20
87130
uses: porter-dev/[email protected]

0 commit comments

Comments
 (0)