container-image.yml 1.1 KB

12345678910111213141516171819202122232425262728293031
  1. # sync with https://github.com/fphammerle/docker-onion-service/blob/master/.github/workflows/container-image.yml
  2. name: container image
  3. on:
  4. push:
  5. pull_request:
  6. schedule:
  7. - cron: '0 20 * * 5'
  8. jobs:
  9. docker-build:
  10. runs-on: ubuntu-20.04
  11. steps:
  12. - uses: docker/setup-qemu-action@v3.0.0
  13. - uses: docker/setup-buildx-action@v3.0.0
  14. # > By default, this action uses the Git context so you don't need to use
  15. # > the actions/checkout action to checkout the repository because this
  16. # > will be done directly by buildkit. [...]
  17. # > any file mutation in the steps that precede [...] will be ignored,
  18. # > including processing of the .dockerignore file
  19. # https://github.com/marketplace/actions/build-and-push-docker-images
  20. # > The commit history is not preserved.
  21. # https://docs.docker.com/engine/reference/commandline/build/#git-repositories
  22. - uses: docker/build-push-action@v5.1.0
  23. with:
  24. build-args: | # git history unavailable (see above)
  25. SETUPTOOLS_SCM_PRETEND_VERSION=0
  26. platforms: |
  27. linux/amd64
  28. # missing cffi wheel for linux/arm/v7