Only build/tag/push images once

Signed-off-by: Rémy Coutable <remy@rymai.me>
This commit is contained in:
Rémy Coutable 2020-02-25 19:06:49 +01:00
parent cc680155e8
commit 611204c382
No known key found for this signature in database
GPG key ID: 98DFFD1C0C62B70B
4 changed files with 73 additions and 8 deletions

View file

@ -65,6 +65,18 @@ the name would be `ruby-2.4-golang-1.9-git-2.14`.
1. Add a test task: `ruby-2.4-golang-1.9-git-2.14 test: *test_custom`
1. Add a new build task: `ruby-2.4-golang-1.9-git-2.14: *build_and_deploy_custom`
#### Forcing custom images to be rebuilt
By default, once a custom image is built, tagged and pushed to the registry, it's
not rebuilt to ensure an upstream dependency doesn't end up breaking our images
unexpectedly.
For reference, this happened in the past: https://gitlab.com/gitlab-org/gitlab/issues/205192
In the rare case where the `Dockerfile.custom` file is updated and all custom
images shoulld be rebuild, you can start a new pipeline and set the variable
`FORCE_BUILD` to `true`.
## Note regarding Google Chrome
Google has a policy of yanking older versions of Google Chrome from their PPA