mirror of
https://ops.gitlab.net/gitlab-org/gitlab-build-images.git
synced 2025-12-09 18:12:55 +01:00
This refactors our custom image building to utilize GitLab parallel jobs with a matrix. This makes it easier to parse what kind of matrix we are going to build in our docker images. Furthermore instead of splitting the image name, we can simply pull the versions of the tools from the environment variables. The ultimative reason: Dogfooding
46 lines
949 B
YAML
46 lines
949 B
YAML
# Used by GitLab: https://gitlab.com/gitlab-org/gitlab/blob/master/.gitlab-ci.yml
|
|
.gitlab-matrix:
|
|
variables:
|
|
GOLANG: '1.16'
|
|
LFS: '2.9'
|
|
CHROME: '89'
|
|
NODE: '14.15'
|
|
YARN: '1.22'
|
|
GRAPHICSMAGICK: '1.3.36'
|
|
parallel:
|
|
matrix:
|
|
- RUBY: ['2.7.patched', '3.0.patched']
|
|
GIT: ['2.31', '2.33']
|
|
POSTGRESQL: ['11', '12', '13']
|
|
|
|
gitlab test:
|
|
extends:
|
|
- .gitlab-matrix
|
|
- .test_custom
|
|
|
|
gitlab push:
|
|
extends:
|
|
- .gitlab-matrix
|
|
- .build_and_deploy_custom
|
|
|
|
# Used by GitLab's compile-production-assets and compile-test-assets jobs
|
|
.gitlab-assets-matrix:
|
|
variables:
|
|
LFS: '2.9'
|
|
NODE: '14.15'
|
|
YARN: '1.22'
|
|
GRAPHICSMAGICK: '1.3.36'
|
|
parallel:
|
|
matrix:
|
|
- RUBY: ['2.7', '3.0']
|
|
GIT: ['2.31', '2.33']
|
|
|
|
gitlab-assets test:
|
|
extends:
|
|
- .gitlab-assets-matrix
|
|
- .test_custom
|
|
|
|
gitlab-assets push:
|
|
extends:
|
|
- .gitlab-assets-matrix
|
|
- .build_and_deploy_custom
|