build-ci-docker.yml 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. name: Build CI Docker
  2. on:
  3. workflow_dispatch:
  4. inputs:
  5. vips_versions:
  6. description: 'Whitespace separated list of libvips versions to build'
  7. required: true
  8. default: "8.14 8.15 8.16"
  9. jobs:
  10. build:
  11. runs-on: ubuntu-latest
  12. permissions:
  13. contents: read
  14. packages: write
  15. steps:
  16. - name: Checkout
  17. uses: actions/checkout@v4
  18. - name: Login to GitHub Container Registry
  19. uses: docker/login-action@v3
  20. with:
  21. registry: ghcr.io
  22. username: ${{ github.actor }}
  23. password: ${{ secrets.GITHUB_TOKEN }}
  24. - name: Set up Docker Buildx
  25. uses: docker/setup-buildx-action@v3
  26. - name: Generate Docker tag
  27. id: tag
  28. run: echo "tag=ghcr.io/imgproxy/imgproxy-ci:$(date +%Y%m%d%H%M)" >> "$GITHUB_OUTPUT"
  29. - name: Build and push
  30. uses: docker/build-push-action@v6
  31. with:
  32. context: .
  33. file: ./.github/ci-docker/Dockerfile
  34. tags: ${{ steps.tag.outputs.tag }}
  35. platforms: linux/amd64
  36. build-args: |
  37. "VIPS_VERSIONS=${{ github.event.inputs.vips_versions }}"
  38. push: true