Merge pull request #35 from nytimes/feature/drone-parallel-build

Parallel build and push Dockerfiles in CI
bug/blend3-update-cuda
Or Fleisher 2022-01-03 16:33:09 -05:00 zatwierdzone przez GitHub
commit 0d23685f39
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 549 dodań i 223 usunięć

Wyświetl plik

@ -1,318 +1,644 @@
---
pipeline:
generate:
image: python:3.8-slim
commands:
- python3 generate.py
when:
event: push
kind: pipeline
name: 2.80-cpu-ubuntu18.04
# Build and push image by image
2.80-cpu-ubuntu18.04:
image: plugins/docker
platform:
os: linux
arch: amd64
steps:
- name: generate
pull: if-not-exists
image: python:3.8-slim
commands:
- python3 generate.py
- name: 2.80-cpu-ubuntu18.04
pull: if-not-exists
image: plugins/docker
settings:
dockerfile: dist/2.80-cpu-ubuntu18.04/Dockerfile
repo: nytimes/blender
username:
from_secret: docker_username
password:
from_secret: docker_password
repo: nytimes/blender
tags: 2.80-cpu-ubuntu18.04
when:
event: push
branch: master
depends_on:
- generate
username:
from_secret: docker_username
2.80-gpu-ubuntu18.04:
image: plugins/docker
trigger:
branch:
- master
event:
- push
---
kind: pipeline
name: 2.80-gpu-ubuntu18.04
platform:
os: linux
arch: amd64
steps:
- name: generate
pull: if-not-exists
image: python:3.8-slim
commands:
- python3 generate.py
- name: 2.80-gpu-ubuntu18.04
pull: if-not-exists
image: plugins/docker
settings:
dockerfile: dist/2.80-gpu-ubuntu18.04/Dockerfile
repo: nytimes/blender
username:
from_secret: docker_username
password:
from_secret: docker_password
repo: nytimes/blender
tags: 2.80-gpu-ubuntu18.04
when:
event: push
branch: master
depends_on:
- generate
username:
from_secret: docker_username
2.81-cpu-ubuntu18.04:
image: plugins/docker
trigger:
branch:
- master
event:
- push
---
kind: pipeline
name: 2.81-cpu-ubuntu18.04
platform:
os: linux
arch: amd64
steps:
- name: generate
pull: if-not-exists
image: python:3.8-slim
commands:
- python3 generate.py
- name: 2.81-cpu-ubuntu18.04
pull: if-not-exists
image: plugins/docker
settings:
dockerfile: dist/2.81-cpu-ubuntu18.04/Dockerfile
repo: nytimes/blender
username:
from_secret: docker_username
password:
from_secret: docker_password
repo: nytimes/blender
tags: 2.81-cpu-ubuntu18.04
when:
event: push
branch: master
depends_on:
- generate
username:
from_secret: docker_username
2.81-gpu-ubuntu18.04:
image: plugins/docker
trigger:
branch:
- master
event:
- push
---
kind: pipeline
name: 2.81-gpu-ubuntu18.04
platform:
os: linux
arch: amd64
steps:
- name: generate
pull: if-not-exists
image: python:3.8-slim
commands:
- python3 generate.py
- name: 2.81-gpu-ubuntu18.04
pull: if-not-exists
image: plugins/docker
settings:
dockerfile: dist/2.81-gpu-ubuntu18.04/Dockerfile
repo: nytimes/blender
username:
from_secret: docker_username
password:
from_secret: docker_password
repo: nytimes/blender
tags: 2.81-gpu-ubuntu18.04
when:
event: push
branch: master
depends_on:
- generate
username:
from_secret: docker_username
2.82-cpu-ubuntu18.04:
image: plugins/docker
trigger:
branch:
- master
event:
- push
---
kind: pipeline
name: 2.82-cpu-ubuntu18.04
platform:
os: linux
arch: amd64
steps:
- name: generate
pull: if-not-exists
image: python:3.8-slim
commands:
- python3 generate.py
- name: 2.82-cpu-ubuntu18.04
pull: if-not-exists
image: plugins/docker
settings:
dockerfile: dist/2.82-cpu-ubuntu18.04/Dockerfile
repo: nytimes/blender
username:
from_secret: docker_username
password:
from_secret: docker_password
repo: nytimes/blender
tags: 2.82-cpu-ubuntu18.04
when:
event: push
branch: master
depends_on:
- generate
username:
from_secret: docker_username
2.82-gpu-ubuntu18.04:
image: plugins/docker
trigger:
branch:
- master
event:
- push
---
kind: pipeline
name: 2.82-gpu-ubuntu18.04
platform:
os: linux
arch: amd64
steps:
- name: generate
pull: if-not-exists
image: python:3.8-slim
commands:
- python3 generate.py
- name: 2.82-gpu-ubuntu18.04
pull: if-not-exists
image: plugins/docker
settings:
dockerfile: dist/2.82-gpu-ubuntu18.04/Dockerfile
repo: nytimes/blender
username:
from_secret: docker_username
password:
from_secret: docker_password
repo: nytimes/blender
tags: 2.82-gpu-ubuntu18.04
when:
event: push
branch: master
depends_on:
- generate
username:
from_secret: docker_username
2.83-cpu-ubuntu18.04:
image: plugins/docker
trigger:
branch:
- master
event:
- push
---
kind: pipeline
name: 2.83-cpu-ubuntu18.04
platform:
os: linux
arch: amd64
steps:
- name: generate
pull: if-not-exists
image: python:3.8-slim
commands:
- python3 generate.py
- name: 2.83-cpu-ubuntu18.04
pull: if-not-exists
image: plugins/docker
settings:
dockerfile: dist/2.83-cpu-ubuntu18.04/Dockerfile
repo: nytimes/blender
username:
from_secret: docker_username
password:
from_secret: docker_password
repo: nytimes/blender
tags: 2.83-cpu-ubuntu18.04
when:
event: push
branch: master
depends_on:
- generate
username:
from_secret: docker_username
2.83-gpu-ubuntu18.04:
image: plugins/docker
trigger:
branch:
- master
event:
- push
---
kind: pipeline
name: 2.83-gpu-ubuntu18.04
platform:
os: linux
arch: amd64
steps:
- name: generate
pull: if-not-exists
image: python:3.8-slim
commands:
- python3 generate.py
- name: 2.83-gpu-ubuntu18.04
pull: if-not-exists
image: plugins/docker
settings:
dockerfile: dist/2.83-gpu-ubuntu18.04/Dockerfile
repo: nytimes/blender
username:
from_secret: docker_username
password:
from_secret: docker_password
repo: nytimes/blender
tags: 2.83-gpu-ubuntu18.04
when:
event: push
branch: master
depends_on:
- generate
username:
from_secret: docker_username
2.90-cpu-ubuntu18.04:
image: plugins/docker
trigger:
branch:
- master
event:
- push
---
kind: pipeline
name: 2.90-cpu-ubuntu18.04
platform:
os: linux
arch: amd64
steps:
- name: generate
pull: if-not-exists
image: python:3.8-slim
commands:
- python3 generate.py
- name: 2.90-cpu-ubuntu18.04
pull: if-not-exists
image: plugins/docker
settings:
dockerfile: dist/2.90-cpu-ubuntu18.04/Dockerfile
repo: nytimes/blender
username:
from_secret: docker_username
password:
from_secret: docker_password
repo: nytimes/blender
tags: 2.90-cpu-ubuntu18.04
when:
event: push
branch: master
depends_on:
- generate
username:
from_secret: docker_username
2.90-gpu-ubuntu18.04:
image: plugins/docker
trigger:
branch:
- master
event:
- push
---
kind: pipeline
name: 2.90-gpu-ubuntu18.04
platform:
os: linux
arch: amd64
steps:
- name: generate
pull: if-not-exists
image: python:3.8-slim
commands:
- python3 generate.py
- name: 2.90-gpu-ubuntu18.04
pull: if-not-exists
image: plugins/docker
settings:
dockerfile: dist/2.90-gpu-ubuntu18.04/Dockerfile
repo: nytimes/blender
username:
from_secret: docker_username
password:
from_secret: docker_password
repo: nytimes/blender
tags: 2.90-gpu-ubuntu18.04
when:
event: push
branch: master
depends_on:
- generate
username:
from_secret: docker_username
2.91-cpu-ubuntu18.04:
image: plugins/docker
trigger:
branch:
- master
event:
- push
---
kind: pipeline
name: 2.91-cpu-ubuntu18.04
platform:
os: linux
arch: amd64
steps:
- name: generate
pull: if-not-exists
image: python:3.8-slim
commands:
- python3 generate.py
- name: 2.91-cpu-ubuntu18.04
pull: if-not-exists
image: plugins/docker
settings:
dockerfile: dist/2.91-cpu-ubuntu18.04/Dockerfile
repo: nytimes/blender
username:
from_secret: docker_username
password:
from_secret: docker_password
repo: nytimes/blender
tags: 2.91-cpu-ubuntu18.04
when:
event: push
branch: master
depends_on:
- generate
username:
from_secret: docker_username
2.91-gpu-ubuntu18.04:
image: plugins/docker
trigger:
branch:
- master
event:
- push
---
kind: pipeline
name: 2.91-gpu-ubuntu18.04
platform:
os: linux
arch: amd64
steps:
- name: generate
pull: if-not-exists
image: python:3.8-slim
commands:
- python3 generate.py
- name: 2.91-gpu-ubuntu18.04
pull: if-not-exists
image: plugins/docker
settings:
dockerfile: dist/2.91-gpu-ubuntu18.04/Dockerfile
repo: nytimes/blender
username:
from_secret: docker_username
password:
from_secret: docker_password
repo: nytimes/blender
tags: 2.91-gpu-ubuntu18.04
when:
event: push
branch: master
depends_on:
- generate
username:
from_secret: docker_username
2.92-cpu-ubuntu18.04:
image: plugins/docker
trigger:
branch:
- master
event:
- push
---
kind: pipeline
name: 2.92-cpu-ubuntu18.04
platform:
os: linux
arch: amd64
steps:
- name: generate
pull: if-not-exists
image: python:3.8-slim
commands:
- python3 generate.py
- name: 2.92-cpu-ubuntu18.04
pull: if-not-exists
image: plugins/docker
settings:
dockerfile: dist/2.92-cpu-ubuntu18.04/Dockerfile
repo: nytimes/blender
username:
from_secret: docker_username
password:
from_secret: docker_password
repo: nytimes/blender
tags: 2.92-cpu-ubuntu18.04
when:
event: push
branch: master
depends_on:
- generate
username:
from_secret: docker_username
2.92-gpu-ubuntu18.04:
image: plugins/docker
trigger:
branch:
- master
event:
- push
---
kind: pipeline
name: 2.92-gpu-ubuntu18.04
platform:
os: linux
arch: amd64
steps:
- name: generate
pull: if-not-exists
image: python:3.8-slim
commands:
- python3 generate.py
- name: 2.92-gpu-ubuntu18.04
pull: if-not-exists
image: plugins/docker
settings:
dockerfile: dist/2.92-gpu-ubuntu18.04/Dockerfile
repo: nytimes/blender
username:
from_secret: docker_username
password:
from_secret: docker_password
repo: nytimes/blender
tags: 2.92-gpu-ubuntu18.04
when:
event: push
branch: master
depends_on:
- generate
username:
from_secret: docker_username
2.93-cpu-ubuntu18.04:
image: plugins/docker
trigger:
branch:
- master
event:
- push
---
kind: pipeline
name: 2.93-cpu-ubuntu18.04
platform:
os: linux
arch: amd64
steps:
- name: generate
pull: if-not-exists
image: python:3.8-slim
commands:
- python3 generate.py
- name: 2.93-cpu-ubuntu18.04
pull: if-not-exists
image: plugins/docker
settings:
dockerfile: dist/2.93-cpu-ubuntu18.04/Dockerfile
repo: nytimes/blender
username:
from_secret: docker_username
password:
from_secret: docker_password
repo: nytimes/blender
tags: 2.93-cpu-ubuntu18.04
when:
event: push
branch: master
depends_on:
- generate
username:
from_secret: docker_username
2.93-gpu-ubuntu18.04:
image: plugins/docker
trigger:
branch:
- master
event:
- push
---
kind: pipeline
name: 2.93-gpu-ubuntu18.04
platform:
os: linux
arch: amd64
steps:
- name: generate
pull: if-not-exists
image: python:3.8-slim
commands:
- python3 generate.py
- name: 2.93-gpu-ubuntu18.04
pull: if-not-exists
image: plugins/docker
settings:
dockerfile: dist/2.93-gpu-ubuntu18.04/Dockerfile
repo: nytimes/blender
username:
from_secret: docker_username
password:
from_secret: docker_password
repo: nytimes/blender
tags: 2.93-gpu-ubuntu18.04
when:
event: push
branch: master
depends_on:
- generate
username:
from_secret: docker_username
3.0-cpu-ubuntu18.04:
image: plugins/docker
trigger:
branch:
- master
event:
- push
---
kind: pipeline
name: 3.0-cpu-ubuntu18.04
platform:
os: linux
arch: amd64
steps:
- name: generate
pull: if-not-exists
image: python:3.8-slim
commands:
- python3 generate.py
- name: 3.0-cpu-ubuntu18.04
pull: if-not-exists
image: plugins/docker
settings:
dockerfile: dist/3.0-cpu-ubuntu18.04/Dockerfile
repo: nytimes/blender
username:
from_secret: docker_username
password:
from_secret: docker_password
repo: nytimes/blender
tags: 3.0-cpu-ubuntu18.04
when:
event: push
branch: master
depends_on:
- generate
3.0-gpu-ubuntu18.04:
image: plugins/docker
dockerfile: dist/3.0-gpu-ubuntu18.04/Dockerfile
repo: nytimes/blender
username:
from_secret: docker_username
trigger:
branch:
- master
event:
- push
---
kind: pipeline
name: 3.0-gpu-ubuntu18.04
platform:
os: linux
arch: amd64
steps:
- name: generate
pull: if-not-exists
image: python:3.8-slim
commands:
- python3 generate.py
- name: 3.0-gpu-ubuntu18.04
pull: if-not-exists
image: plugins/docker
settings:
dockerfile: dist/3.0-gpu-ubuntu18.04/Dockerfile
password:
from_secret: docker_password
repo: nytimes/blender
tags:
- 3.0-gpu-ubuntu18.04
- latest
when:
event: push
branch: master
depends_on:
- generate
- 3.0-gpu-ubuntu18.04
- latest
username:
from_secret: docker_username
notify:
image: plugins/slack
username: Blender Docker Bot
icon_emoji: ":blender-3d:"
trigger:
branch:
- master
event:
- push
---
kind: pipeline
name: notify
platform:
os: linux
arch: amd64
steps:
- name: notify
pull: if-not-exists
image: plugins/slack
settings:
channel: rd-bots
icon_emoji: ":blender-3d:"
template: "{{#success build.status}}\n Build {{build.number}} for ${DRONE_BRANCH} on ${DRONE_REPO} succeeded :party-gopher: {{build.link}}\n{{else}}\n Build {{build.number}} for ${DRONE_BRANCH} on ${DRONE_REPO} failed! :doh: {{build.link}}\n{{/success}}\n"
username: Blender Docker Bot
webhook:
from_secret: slack_webhook
template: >
{{#success build.status}}
Build {{build.number}} for ${DRONE_BRANCH} on ${DRONE_REPO} succeeded :party-gopher: {{build.link}}
{{else}}
Build {{build.number}} for ${DRONE_BRANCH} on ${DRONE_REPO} failed! :doh: {{build.link}}
{{/success}}
when:
status: [success, failure]
event: push
branch: master
depends_on:
- 2.80-cpu-ubuntu18.04
- 2.80-gpu-ubuntu18.04
- 2.81-cpu-ubuntu18.04
- 2.81-gpu-ubuntu18.04
- 2.82-cpu-ubuntu18.04
- 2.82-gpu-ubuntu18.04
- 2.83-cpu-ubuntu18.04
- 2.83-gpu-ubuntu18.04
- 2.90-cpu-ubuntu18.04
- 2.90-gpu-ubuntu18.04
- 2.91-gpu-ubuntu18.04
- 2.91-cpu-ubuntu18.04
- 2.92-gpu-ubuntu18.04
- 2.92-cpu-ubuntu18.04
- 2.93-gpu-ubuntu18.04
- 2.93-cpu-ubuntu18.04
- 3.0-gpu-ubuntu18.04
- 3.0-cpu-ubuntu18.04
depends_on:
- 2.80-cpu-ubuntu18.04
- 2.80-gpu-ubuntu18.04
- 2.81-cpu-ubuntu18.04
- 2.81-gpu-ubuntu18.04
- 2.82-cpu-ubuntu18.04
- 2.82-gpu-ubuntu18.04
- 2.83-cpu-ubuntu18.04
- 2.83-gpu-ubuntu18.04
- 2.90-cpu-ubuntu18.04
- 2.90-gpu-ubuntu18.04
- 2.91-gpu-ubuntu18.04
- 2.91-cpu-ubuntu18.04
- 2.92-gpu-ubuntu18.04
- 2.92-cpu-ubuntu18.04
- 2.93-gpu-ubuntu18.04
- 2.93-cpu-ubuntu18.04
- 3.0-gpu-ubuntu18.04
- 3.0-cpu-ubuntu18.04
trigger:
branch:
- master
event:
- push
status:
- success
- failure