| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182 |
- "on":
- push:
- tags:
- - production
- name: Deploy Porter to Production
- 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
- 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: Update Porter API
- timeout-minutes: 20
- uses: porter-dev/porter-update-action@v0.1.0
- with:
- app: porter-ui
- cluster: "9"
- host: https://dashboard.internal-tools.porter.run
- namespace: default
- project: "5"
- tag: ${{ steps.vars.outputs.sha_short }}
- token: ${{ secrets.PORTER_TOKEN_5 }}
- - 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_TOKEN_5 }}
- deploy-worker-pool:
- runs-on: ubuntu-latest
- needs: [build-go, build-npm] # don't run this step unless these finish successfully
- steps:
- - name: Checkout code
- uses: actions/checkout@v3
- - name: Set Github tag
- id: vars
- run: echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
- - name: Update Worker Pool (revision cull job)
- timeout-minutes: 20
- uses: porter-dev/porter-update-action@v0.1.0
- with:
- app: cull-helm-revisions
- cluster: "9"
- host: https://dashboard.internal-tools.porter.run
- namespace: default
- project: "5"
- tag: ${{ steps.vars.outputs.sha_short }}
- token: ${{ secrets.PORTER_TOKEN_5 }}
|