2
0

install_script.yml 722 B

12345678910111213141516171819202122232425
  1. "on":
  2. push:
  3. tags:
  4. - production
  5. name: Deploy Install Script to 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: Update Porter App
  16. timeout-minutes: 20
  17. uses: porter-dev/porter-update-action@v0.1.0
  18. with:
  19. app: install-script
  20. cluster: "9"
  21. host: https://dashboard.internal-tools.porter.run
  22. namespace: default
  23. project: "5"
  24. tag: ${{ steps.vars.outputs.sha_short }}
  25. token: ${{ secrets.PORTER_TOKEN_5 }}