Normalize Docker image name for building a static image via matrix

This commit is contained in:
Vitaly Slobodin 2023-08-17 10:19:24 +02:00
parent f09e3e4423
commit 943c09c4d3
No known key found for this signature in database
GPG key ID: BE103100635359D0
2 changed files with 14 additions and 3 deletions

View file

@ -30,6 +30,16 @@ new-image:
extends: .build_static_image
```
**NOTE:** You can use `parallel:matrix` keyword to build images for multiple architectures:
```yml
new-image:
extends: .build_static_image
parallel:
matrix:
- ARCH: [ 'arm64', 'amd64' ]
```
1. Add a Dockerfile: `Dockerfile.new-image`.
### Use a custom image with versioned features