From bd8314183c6d66d8266a7458c7e9ce45bbb9e6dc Mon Sep 17 00:00:00 2001 From: sunguroku <65516095+sunguroku@users.noreply.github.com> Date: Mon, 4 Mar 2024 20:00:12 -0500 Subject: [PATCH] Update production.yml (#4367) --- .github/workflows/production.yml | 47 ++++++++++++++++++++++++++++++-- 1 file changed, 45 insertions(+), 2 deletions(-) diff --git a/.github/workflows/production.yml b/.github/workflows/production.yml index e02e2c7d7e..1adef39b7f 100644 --- a/.github/workflows/production.yml +++ b/.github/workflows/production.yml @@ -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/porter-update-action@v0.1.0 + uses: porter-dev/porter-cli-action@v0.1.0 + 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/porter-cli-action@v0.1.0 + 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/porter-cli-action@v0.1.0 + 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/porter-run-job-action@v0.1.0 + with: + job: migrate + cluster: 9 + project: 5 + token: ${{ secrets.PORTER_PRODUCTION_DEPLOYMENT }} + + - name: Update Porter Server + timeout-minutes: 20 + uses: porter-dev/porter-update-config-action@v0.1.0 with: app: porter-ui cluster: "9" @@ -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/porter-update-config-action@v0.1.0