docker.yml 797 B

1234567891011121314151617181920212223242526272829303132333435
  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. -
  15. name: Set up QEMU
  16. uses: docker/setup-qemu-action@v2
  17. -
  18. name: Set up Docker Buildx
  19. uses: docker/setup-buildx-action@v2
  20. -
  21. name: Login to DockerHub
  22. uses: docker/login-action@v1
  23. with:
  24. username: ${{ secrets.DOCKERHUB_USERNAME }}
  25. password: ${{ secrets.DOCKERHUB_TOKEN }}
  26. -
  27. name: Build and push
  28. uses: docker/build-push-action@v2
  29. with:
  30. context: .
  31. platforms: linux/amd64,linux/arm64,linux/arm64/v8
  32. push: true
  33. tags: ftcaplan/matrix-stt-bot:latest