companion-deploy.yml 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. name: Companion Deploy
  2. on:
  3. push:
  4. branches: [master]
  5. jobs:
  6. docker:
  7. name: DockerHub
  8. runs-on: ubuntu-latest
  9. steps:
  10. - name: Checkout sources
  11. uses: actions/checkout@v2
  12. - name: Log in to DockerHub
  13. uses: docker/login-action@v1
  14. with:
  15. username: ${{secrets.DOCKER_USERNAME}}
  16. password: ${{secrets.DOCKER_PASSWORD}}
  17. - name: Build and push
  18. uses: docker/build-push-action@v2
  19. with:
  20. context: packages/@uppy/companion
  21. file: packages/@uppy/companion/Dockerfile
  22. # TODO add a companion version tag if this is a "Release" commit
  23. # Punting on that since it didn't work on travis either, so current users must already be relying on commit hashes
  24. tags: transloadit/companion:latest,transloadit/companion:${{github.sha}}
  25. heroku:
  26. name: Heroku
  27. runs-on: ubuntu-latest
  28. steps:
  29. - name: Checkout sources
  30. uses: actions/checkout@v2
  31. - name: Deploy to heroku
  32. uses: akhileshns/heroku-deploy@v3.5.6
  33. with:
  34. heroku_api_key: ${{secrets.HEROKU_API_KEY}}
  35. heroku_app_name: companion-demo
  36. heroku_email: ${{secrets.HEROKU_EMAIL}}