2
0

install_script.yml 928 B

1234567891011121314151617181920212223242526272829
  1. name: Deploy to install-script
  2. on:
  3. push:
  4. tags:
  5. - production
  6. jobs:
  7. porter-deploy:
  8. runs-on: ubuntu-latest
  9. steps:
  10. - name: Checkout code
  11. uses: actions/checkout@v3
  12. - name: Set Github tag
  13. id: vars
  14. run: echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
  15. - name: Setup porter
  16. uses: porter-dev/setup-porter@v0.1.0
  17. - name: Deploy stack
  18. timeout-minutes: 30
  19. run: exec porter apply
  20. env:
  21. PORTER_CLUSTER: "9"
  22. PORTER_DEPLOYMENT_TARGET_ID: b0fec389-99d5-4ca5-9012-002b410248b3
  23. PORTER_HOST: https://dashboard.internal-tools.porter.run
  24. PORTER_PR_NUMBER: ${{ github.event.number }}
  25. PORTER_PROJECT: "5"
  26. PORTER_REPO_NAME: ${{ github.event.repository.name }}
  27. PORTER_STACK_NAME: install-script
  28. PORTER_TAG: ${{ steps.vars.outputs.sha_short }}
  29. PORTER_TOKEN: ${{ secrets.PORTER_STACK_5_9 }}