You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
mailu/docs
bors[bot] 53de7b7d60
Merge #2403
2403: Feature: switch CI/CD from build to buildx r=mergify[bot] a=Diman0

## What type of PR?

Feature and enhancement

## What does this PR do?

Switch from docker build to buildx for CI/CD.
    - The main workflow file has been optimised and simplified.
    - Images are built in parallel when building locally resulting in much faster build times.
    - The github action workflow is about 50% faster.
    - Arm images are built as well. These images are not tested due to restrictions of github actions (no arm runners). The tags of the images have -arm appended to it. The arm images are built on merge on master and release branch (x.y). They do not influence the normal CI/CD workflow used for bors (for PR) and real releases (merge on master and branch x.y for x86_64). 
    - Arm images (and normal x86_64 images) can also be built locally.
    - Reusable workflow is introduced for building, testing and deploying the images. This allows the workflow to be reused for other purposes in the future.
    - Workflow can be manually triggered. This allows forked Mailu projects to also use the workflow for building images.

The main workflow makes use of github actions cache to store the cache layer. This layer is used to quickly rebuilt the images in the testing step and deploy step.

Unfortunately the building the arm images fails sometimes due to timeouts. Sometimes the connection to github actions cache is very slow. Restarting the workflow from the last failed step resolves this. I have not observed this with the normal build.

Just as previous time, you can use a forked project for testing the changes (https://github.com/Diman0/Mailu_Fork). You should still have owner access. I have created branch 1.11 for testing. You can see I already push 4 times to branch 1.11 (current version is 1.11.3).

### Related issue(s)
- Mention an issue like: #001
- closes #2383 
- closes #1830
- closes #1200

## Prerequisites
Before we can consider review and merge, please make sure the following list is done and checked.
If an entry in not applicable, you can check it or remove it from the list.

- [x] In case of feature or enhancement: documentation updated accordingly
- [x] Unless it's docs or a minor change: add [changelog](https://mailu.io/master/contributors/workflow.html#changelog) entry file.


Co-authored-by: Dimitri Huisman <diman@huisman.xyz>
2 years ago
..
_templates Restore VERSION_TAG template 6 years ago
assets removing unneeded image 4 years ago
compose Merge #2391 2 years ago
contributors Merge branch 'master' into feat-switch-buildx 2 years ago
kubernetes/mailu simplify 3 years ago
swarm Implement rate-limits 3 years ago
.env Add deploy settings for server 6 years ago
Dockerfile Process code review remarks 3 years ago
antispam.rst Documentation: 2 years ago
arm_images.rst Switch from docker build to buildx for CI/CD. 2 years ago
cli.rst Fix small typo in config-import example template 2 years ago
conf.py Set language to English for sphinx in conf.py. 3 years ago
configuration.rst Documentation: 2 years ago
database.rst Update database.rst 2 years ago
demo.rst Fixed small typo 5 years ago
dns.rst Change URL dashboard in DKIM/SPF & DMARC Entries 3 years ago
docker-compose.yml Make docker-compose.yml for setup and docs development friendly 6 years ago
faq.rst Merge #2391 2 years ago
features.rst remove service status "feature" 4 years ago
general.rst Update general.rst 2 years ago
index.rst Switch from docker build to buildx for CI/CD. 2 years ago
maintain.rst Documentation: 2 years ago
nginx.conf Build the documentation as a Docker image 6 years ago
releases.rst Warn about rollbacks not working 3 years ago
requirements.txt Added missing extension in conf.py. Added missing library in requirements.txt. Sphinx is only compatible with docutils<0.17 3 years ago
reverse.rst Fixed error in reverse.rst and remove unneeded example block. 2 years ago
setup.rst Merge branch 'master' into feat-switch-buildx 2 years ago
webadministration.rst Documentation: 2 years ago