docker.yml 787 B

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