mirror of
https://ops.gitlab.net/gitlab-org/gitlab-build-images.git
synced 2025-12-09 18:12:55 +01:00
ci: Only build custom images that need to be rebuilt
Signed-off-by: Rémy Coutable <remy@rymai.me>
This commit is contained in:
parent
ccd8e00291
commit
684f0ce8ef
10 changed files with 125 additions and 62 deletions
|
|
@ -27,7 +27,7 @@ Assuming the image you want to add is called `new-image`:
|
|||
|
||||
```yml
|
||||
new-image:
|
||||
extends: .build_and_deploy
|
||||
extends: .build_static_image
|
||||
```
|
||||
|
||||
1. Add a Dockerfile: `Dockerfile.new-image`.
|
||||
|
|
@ -84,7 +84,7 @@ following job definition would have to be created:
|
|||
```yml
|
||||
new_image:
|
||||
extends:
|
||||
- .build_and_push
|
||||
- .build_dynamic_image
|
||||
variables:
|
||||
OS: 'debian:bullseye'
|
||||
RUBY: '3.0'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue