companion-deploy.yml 1.3 KB

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