image_builds.yml 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. name: Build mailcow Docker Images
  2. on:
  3. push:
  4. branches: [ "master", "staging" ]
  5. workflow_dispatch:
  6. permissions:
  7. contents: read # to fetch code (actions/checkout)
  8. jobs:
  9. docker_image_builds:
  10. strategy:
  11. matrix:
  12. images:
  13. - "acme-mailcow"
  14. - "clamd-mailcow"
  15. - "dockerapi-mailcow"
  16. - "dovecot-mailcow"
  17. - "netfilter-mailcow"
  18. - "olefy-mailcow"
  19. - "php-fpm-mailcow"
  20. - "postfix-mailcow"
  21. - "rspamd-mailcow"
  22. - "sogo-mailcow"
  23. - "solr-mailcow"
  24. - "unbound-mailcow"
  25. - "watchdog-mailcow"
  26. runs-on: ubuntu-latest
  27. steps:
  28. - uses: actions/checkout@v4
  29. - name: Setup Docker
  30. run: |
  31. curl -sSL https://get.docker.com/ | CHANNEL=stable sudo sh
  32. sudo service docker start
  33. - name: Prepair Image Builds
  34. run: |
  35. cp helper-scripts/docker-compose.override.yml.d/BUILD_FLAGS/docker-compose.override.yml docker-compose.override.yml
  36. - name: Build Docker Images
  37. run: |
  38. docker compose build ${image}
  39. env:
  40. image: ${{ matrix.images }}