Skip to content

Commit

Permalink
Update production.yml (#4367)
Browse files Browse the repository at this point in the history
  • Loading branch information
sunguroku authored Mar 5, 2024
1 parent 51c3176 commit bd83141
Showing 1 changed file with 45 additions and 2 deletions.
47 changes: 45 additions & 2 deletions .github/workflows/production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,51 @@ jobs:
- name: Set Github tag
id: vars
run: echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
- name: Update Porter API

- name: Build Image
timeout-minutes: 20
uses: porter-dev/[email protected]
uses: porter-dev/[email protected]
with:
command: update build --app porter-ui --tag ${{ steps.vars.outputs.sha_short }} --stream
env:
PORTER_HOST: https://dashboard.internal-tools.porter.run
PORTER_CLUSTER: 9
PORTER_PROJECT: 5
PORTER_TOKEN: ${{ secrets.PORTER_PRODUCTION_DEPLOYMENT }}

- name: Push Image
timeout-minutes: 20
uses: porter-dev/[email protected]
with:
command: update push --app porter-ui --tag ${{ steps.vars.outputs.sha_short }} --stream
env:
PORTER_HOST: https://dashboard.internal-tools.porter.run
PORTER_CLUSTER: 9
PORTER_PROJECT: 5
PORTER_TOKEN: ${{ secrets.PORTER_PRODUCTION_DEPLOYMENT }}

- name: Update Porter Migration Job
timeout-minutes: 20
uses: porter-dev/[email protected]
with:
command: update config --app migrate --tag ${{ steps.vars.outputs.sha_short }} --stream
env:
PORTER_HOST: https://dashboard.internal-tools.porter.run
PORTER_CLUSTER: 9
PORTER_PROJECT: 5
PORTER_TOKEN: ${{ secrets.PORTER_PRODUCTION_DEPLOYMENT }}

- name: Run Migration Job
uses: porter-dev/[email protected]
with:
job: migrate
cluster: 9
project: 5
token: ${{ secrets.PORTER_PRODUCTION_DEPLOYMENT }}

- name: Update Porter Server
timeout-minutes: 20
uses: porter-dev/[email protected]
with:
app: porter-ui
cluster: "9"
Expand All @@ -82,6 +124,7 @@ jobs:
project: "5"
tag: ${{ steps.vars.outputs.sha_short }}
token: ${{ secrets.PORTER_PRODUCTION_DEPLOYMENT }}

- name: Update Porter Auth
timeout-minutes: 20
uses: porter-dev/[email protected]
Expand Down

0 comments on commit bd83141

Please sign in to comment.