docker.yml 788 B

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