2022-07-19 20:24:24 +02:00
|
|
|
name: Build mailcow Docker Images
|
2022-07-11 17:41:16 +02:00
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [ "master", "staging" ]
|
|
|
|
workflow_dispatch:
|
|
|
|
|
2022-09-25 14:42:01 +02:00
|
|
|
permissions:
|
|
|
|
contents: read # to fetch code (actions/checkout)
|
|
|
|
|
2022-07-11 17:41:16 +02:00
|
|
|
jobs:
|
|
|
|
docker_image_builds:
|
|
|
|
strategy:
|
|
|
|
matrix:
|
2022-07-19 20:24:24 +02:00
|
|
|
images:
|
|
|
|
- "acme-mailcow"
|
|
|
|
- "clamd-mailcow"
|
|
|
|
- "dockerapi-mailcow"
|
|
|
|
- "dovecot-mailcow"
|
|
|
|
- "netfilter-mailcow"
|
|
|
|
- "olefy-mailcow"
|
|
|
|
- "php-fpm-mailcow"
|
|
|
|
- "postfix-mailcow"
|
|
|
|
- "rspamd-mailcow"
|
|
|
|
- "sogo-mailcow"
|
|
|
|
- "solr-mailcow"
|
|
|
|
- "unbound-mailcow"
|
|
|
|
- "watchdog-mailcow"
|
2022-07-11 17:41:16 +02:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2023-09-04 18:49:38 +02:00
|
|
|
- uses: actions/checkout@v4
|
2022-07-11 17:41:16 +02:00
|
|
|
- name: Setup Docker
|
|
|
|
run: |
|
|
|
|
curl -sSL https://get.docker.com/ | CHANNEL=stable sudo sh
|
|
|
|
sudo service docker start
|
|
|
|
- name: Prepair Image Builds
|
|
|
|
run: |
|
|
|
|
cp helper-scripts/docker-compose.override.yml.d/BUILD_FLAGS/docker-compose.override.yml docker-compose.override.yml
|
|
|
|
- name: Build Docker Images
|
|
|
|
run: |
|
2022-12-16 13:57:01 +01:00
|
|
|
docker compose build ${image}
|
2022-07-11 17:41:16 +02:00
|
|
|
env:
|
|
|
|
image: ${{ matrix.images }}
|