gitlab-ci: Reduce duplication by using extends: and YAML anchors
Do not repeat the instructions for each architecture, but use templates to be instantiated for each architecture.
Do not repeat the instructions for each architecture, but use templates to be instantiated for each architecture.