docker.yml 828 B

12345678910111213141516171819202122232425262728293031323334353637
  1. name: ci
  2. on:
  3. push:
  4. branches:
  5. - 'master'
  6. jobs:
  7. docker:
  8. runs-on: ubuntu-latest
  9. environment: main
  10. steps:
  11. -
  12. name: Checkout
  13. uses: actions/checkout@v3
  14. with:
  15. submodules: recursive
  16. -
  17. name: Set up QEMU
  18. uses: docker/setup-qemu-action@v2
  19. -
  20. name: Set up Docker Buildx
  21. uses: docker/setup-buildx-action@v2
  22. -
  23. name: Login to DockerHub
  24. uses: docker/login-action@v1
  25. with:
  26. username: ${{ secrets.DOCKERHUB_USERNAME }}
  27. password: ${{ secrets.DOCKERHUB_TOKEN }}
  28. -
  29. name: Build and push
  30. uses: docker/build-push-action@v2
  31. with:
  32. context: .
  33. platforms: linux/amd64,linux/arm64
  34. push: true
  35. tags: ftcaplan/matrix-stt-bot:latest