|
|
@@ -52,92 +52,21 @@ jobs:
|
|
|
uses: actions/checkout@v3
|
|
|
- name: build-npm
|
|
|
uses: ./.github/actions/build-npm
|
|
|
- deploy-porter:
|
|
|
+ porter-deploy:
|
|
|
runs-on: ubuntu-latest
|
|
|
- needs: [build-go, build-npm]
|
|
|
+ needs: [ build-go, build-npm ]
|
|
|
steps:
|
|
|
- name: Checkout code
|
|
|
uses: actions/checkout@v3
|
|
|
- - name: Get Go Binaries
|
|
|
- uses: actions/download-artifact@v3
|
|
|
+ - name: porter-deploy
|
|
|
+ timeout-minutes: 30
|
|
|
+ uses: ./.github/actions/porter-deploy
|
|
|
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: Build Image
|
|
|
- timeout-minutes: 20
|
|
|
- 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
|
|
|
- timeout-minutes: 20
|
|
|
- uses: porter-dev/porter-run-job-action@v0.1.0
|
|
|
- with:
|
|
|
- job: migrate
|
|
|
- host: https://dashboard.internal-tools.porter.run
|
|
|
- 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
|
|
|
+ app: porter
|
|
|
cluster: "9"
|
|
|
host: https://dashboard.internal-tools.porter.run
|
|
|
- namespace: default
|
|
|
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
|
|
|
- with:
|
|
|
- app: porter-auth
|
|
|
- cluster: "9"
|
|
|
- host: https://dashboard.internal-tools.porter.run
|
|
|
- namespace: default
|
|
|
- project: "5"
|
|
|
- tag: ${{ steps.vars.outputs.sha_short }}
|
|
|
- token: ${{ secrets.PORTER_PRODUCTION_DEPLOYMENT }}
|
|
|
+ token: ${{ secrets.PORTER_STACK_5_9 }}
|
|
|
|
|
|
deploy-worker-pool:
|
|
|
runs-on: ubuntu-latest
|