builder-image.yml 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. name: Builder image
  2. on:
  3. schedule:
  4. - cron: "0 3 * * 1"
  5. push:
  6. paths:
  7. - "ci.Dockerfile"
  8. - "**/builder-image.yml"
  9. jobs:
  10. build:
  11. name: Push builder image to Docker Hub
  12. runs-on: ubuntu-latest
  13. steps:
  14. - name: Checkout
  15. uses: actions/checkout@v2
  16. - name: Set up QEMU
  17. uses: docker/setup-qemu-action@v1
  18. - name: Set up Docker Buildx
  19. uses: docker/setup-buildx-action@v1
  20. - name: Login to DockerHub
  21. uses: docker/login-action@v1
  22. with:
  23. username: ${{ secrets.DOCKER_USERNAME }}
  24. password: ${{ secrets.DOCKER_PASSWORD }}
  25. - name: Push to Docker Hub
  26. uses: docker/build-push-action@v2
  27. env:
  28. DOCKER_BUILDKIT: 0
  29. COMPOSE_DOCKER_CLI_BUILD: 0
  30. with:
  31. platforms: linux/amd64, linux/arm/v6,linux/arm/v7,linux/arm64
  32. file: ci.Dockerfile
  33. push: true
  34. tags: jguer/yay-builder:latest
  35. secrets: |
  36. DOCKER_BUILDKIT=0
  37. COMPOSE_DOCKER_CLI_BUILD=0
  38. cache-from: type=registry,ref=jguer/yay-builder:latest
  39. cache-to: type=inline