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