docker.yml 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. name: Build and publish to Docker Hub
  2. on:
  3. push:
  4. branches:
  5. - 'master'
  6. jobs:
  7. atlas:
  8. runs-on: ubuntu-latest
  9. steps:
  10. - name: Login to DockerHub
  11. uses: docker/login-action@v1
  12. with:
  13. username: ${{ secrets.DOCKERHUB_USERNAME }}
  14. password: ${{ secrets.DOCKERHUB_TOKEN }}
  15. - name: Build and push
  16. id: docker_build
  17. uses: docker/build-push-action@v2
  18. with:
  19. file: packages/atlas/Dockerfile
  20. push: true
  21. tags: joystream/atlas:latest
  22. atlas-meta-server:
  23. runs-on: ubuntu-latest
  24. steps:
  25. - name: Login to DockerHub
  26. uses: docker/login-action@v1
  27. with:
  28. username: ${{ secrets.DOCKERHUB_USERNAME }}
  29. password: ${{ secrets.DOCKERHUB_TOKEN }}
  30. - name: Build and push
  31. id: docker_build
  32. uses: docker/build-push-action@v2
  33. with:
  34. file: packages/atlas-meta-server/Dockerfile
  35. push: true
  36. tags: joystream/atlas-meta-server:latest
  37. atlas-avatar-service:
  38. runs-on: ubuntu-latest
  39. steps:
  40. - name: Login to DockerHub
  41. uses: docker/login-action@v1
  42. with:
  43. username: ${{ secrets.DOCKERHUB_USERNAME }}
  44. password: ${{ secrets.DOCKERHUB_TOKEN }}
  45. - name: Build and push
  46. id: docker_build
  47. uses: docker/build-push-action@v2
  48. with:
  49. file: packages/atlas-avatar-service/Dockerfile
  50. push: true
  51. tags: joystream/atlas-avatar-service:latest