add cctp v1 and 2 tokens (source) (#9923) #2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Deploy disco UI | |
| concurrency: | |
| group: disco-ui-deployment | |
| permissions: {} | |
| on: | |
| workflow_dispatch: {} | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| deploy-disco-ui: | |
| name: Deploy disco-ui | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 10 | |
| steps: | |
| - name: Check out code | |
| uses: actions/checkout@v4 | |
| - name: Set up Docker.io mirror | |
| uses: docker/setup-buildx-action@v3 | |
| with: | |
| buildkitd-config-inline: | | |
| [registry."docker.io"] | |
| mirrors = ["mirror.gcr.io"] | |
| - name: Install heroku CLI | |
| run: curl https://cli-assets.heroku.com/install-ubuntu.sh | sh | |
| - name: Login to heroku container registry | |
| uses: docker/login-action@v3 | |
| with: | |
| username: "_" | |
| password: ${{ secrets.HEROKU_TOKEN }} | |
| registry: registry.heroku.com | |
| - name: Build and publish container | |
| run: | | |
| docker build --push \ | |
| --build-arg TURBO_TEAM=${TURBO_TEAM} \ | |
| --build-arg TURBO_TOKEN=${TURBO_TOKEN} \ | |
| -t ${TAG} -f ${DOCKERFILE} . | |
| env: | |
| DOCKERFILE: Dockerfile.discoui | |
| TAG: registry.heroku.com/${{ secrets.HEROKU_DISCOVERY_UI }}/web | |
| TURBO_TEAM: ${{ vars.TURBO_TEAM }} | |
| TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }} | |
| - name: Release published container | |
| run: | | |
| heroku container:release -a ${{ secrets.HEROKU_DISCOVERY_UI }} -v web | |
| env: | |
| HEROKU_ORGANIZATION: ${{ vars.HEROKU_ORG }} | |
| HEROKU_API_KEY: ${{ secrets.HEROKU_TOKEN }} |