porter_stack_porter-ui.yml 984 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. "on":
  2. push:
  3. branches:
  4. - master
  5. name: Deploy Porter to Internal Tooling
  6. jobs:
  7. build-go:
  8. runs-on: ubuntu-latest
  9. steps:
  10. - name: Checkout code
  11. uses: actions/checkout@v3
  12. - name: build-go
  13. uses: ./.github/actions/build-go
  14. build-npm:
  15. runs-on: ubuntu-latest
  16. steps:
  17. - name: Checkout code
  18. uses: actions/checkout@v3
  19. - name: build-npm
  20. uses: ./.github/actions/build-npm
  21. with:
  22. env_vars: ${{ vars.DASHBOARD_ENV_INTERNAL_TOOLS }}
  23. porter-deploy:
  24. runs-on: ubuntu-latest
  25. needs: [build-go, build-npm]
  26. steps:
  27. - name: Checkout code
  28. uses: actions/checkout@v3
  29. - name: porter-deploy
  30. timeout-minutes: 30
  31. uses: ./.github/actions/porter-deploy
  32. with:
  33. app: porter-ui
  34. cluster: "11"
  35. host: https://dashboard.internal-tools.porter.run
  36. project: "8"
  37. token: ${{ secrets.PORTER_INTERNAL_TOOLS_DEPLOYMENT }}