зеркало из https://github.com/mozilla/bugbug.git
Build tagged Docker images (#554)
This commit is contained in:
Родитель
75045dac44
Коммит
08e36a7d8a
|
@ -138,13 +138,19 @@ tasks:
|
|||
privileged: true
|
||||
maxRunTime: 10800
|
||||
image: mozilla/taskboot:0.1.3
|
||||
env:
|
||||
REGISTRY: registry.hub.docker.com
|
||||
VERSION:
|
||||
$if: 'head_branch[:10] == "refs/tags/"'
|
||||
then: {$eval: 'head_branch[10:]' }
|
||||
else: "latest"
|
||||
command:
|
||||
- "/bin/sh"
|
||||
- "-lcxe"
|
||||
- "git clone ${repository} /code &&
|
||||
cd /code &&
|
||||
git checkout ${head_rev} &&
|
||||
taskboot --cache /cache --target /code build-compose --registry=registry.hub.docker.com --write /images --build-arg CHECK_MODELS=0"
|
||||
taskboot --cache /cache --target /code build-compose --write /images --build-arg CHECK_MODELS=0 --tag $VERSION --tag latest"
|
||||
artifacts:
|
||||
public/bugbug:
|
||||
expires: {$fromNow: '2 weeks'}
|
||||
|
|
Загрузка…
Ссылка в новой задаче