From 978667b742e6748ea37ad91d1224cddc2161512f Mon Sep 17 00:00:00 2001 From: juniorxsound Date: Mon, 3 Jan 2022 15:19:52 -0500 Subject: [PATCH 1/5] Convert the YAML using the CLI --- .drone.yml | 527 ++++++++++++++++++++++++++++++----------------------- 1 file changed, 304 insertions(+), 223 deletions(-) diff --git a/.drone.yml b/.drone.yml index 9162872..93a84ad 100644 --- a/.drone.yml +++ b/.drone.yml @@ -1,318 +1,399 @@ --- -pipeline: - generate: - image: python:3.8-slim - commands: - - python3 generate.py - when: - event: push +kind: pipeline +name: default - # 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 + when: + event: + - push + +- name: 2.80-cpu-ubuntu18.04 + pull: if-not-exists + image: plugins/docker + settings: + depends_on: + - generate 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 + when: + branch: + - master + event: + - push - 2.80-gpu-ubuntu18.04: - image: plugins/docker +- name: 2.80-gpu-ubuntu18.04 + pull: if-not-exists + image: plugins/docker + settings: + depends_on: + - generate 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 + when: + branch: + - master + event: + - push - 2.81-cpu-ubuntu18.04: - image: plugins/docker +- name: 2.81-cpu-ubuntu18.04 + pull: if-not-exists + image: plugins/docker + settings: + depends_on: + - generate 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 + when: + branch: + - master + event: + - push - 2.81-gpu-ubuntu18.04: - image: plugins/docker +- name: 2.81-gpu-ubuntu18.04 + pull: if-not-exists + image: plugins/docker + settings: + depends_on: + - generate 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 + when: + branch: + - master + event: + - push - 2.82-cpu-ubuntu18.04: - image: plugins/docker +- name: 2.82-cpu-ubuntu18.04 + pull: if-not-exists + image: plugins/docker + settings: + depends_on: + - generate 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 + when: + branch: + - master + event: + - push - 2.82-gpu-ubuntu18.04: - image: plugins/docker +- name: 2.82-gpu-ubuntu18.04 + pull: if-not-exists + image: plugins/docker + settings: + depends_on: + - generate 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 + when: + branch: + - master + event: + - push - 2.83-cpu-ubuntu18.04: - image: plugins/docker +- name: 2.83-cpu-ubuntu18.04 + pull: if-not-exists + image: plugins/docker + settings: + depends_on: + - generate 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 + when: + branch: + - master + event: + - push - 2.83-gpu-ubuntu18.04: - image: plugins/docker +- name: 2.83-gpu-ubuntu18.04 + pull: if-not-exists + image: plugins/docker + settings: + depends_on: + - generate 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 + when: + branch: + - master + event: + - push - 2.90-cpu-ubuntu18.04: - image: plugins/docker +- name: 2.90-cpu-ubuntu18.04 + pull: if-not-exists + image: plugins/docker + settings: + depends_on: + - generate 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 + when: + branch: + - master + event: + - push - 2.90-gpu-ubuntu18.04: - image: plugins/docker +- name: 2.90-gpu-ubuntu18.04 + pull: if-not-exists + image: plugins/docker + settings: + depends_on: + - generate 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 + when: + branch: + - master + event: + - push - 2.91-cpu-ubuntu18.04: - image: plugins/docker +- name: 2.91-cpu-ubuntu18.04 + pull: if-not-exists + image: plugins/docker + settings: + depends_on: + - generate 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 + when: + branch: + - master + event: + - push - 2.91-gpu-ubuntu18.04: - image: plugins/docker +- name: 2.91-gpu-ubuntu18.04 + pull: if-not-exists + image: plugins/docker + settings: + depends_on: + - generate 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 + when: + branch: + - master + event: + - push - 2.92-cpu-ubuntu18.04: - image: plugins/docker +- name: 2.92-cpu-ubuntu18.04 + pull: if-not-exists + image: plugins/docker + settings: + depends_on: + - generate 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 + when: + branch: + - master + event: + - push - 2.92-gpu-ubuntu18.04: - image: plugins/docker +- name: 2.92-gpu-ubuntu18.04 + pull: if-not-exists + image: plugins/docker + settings: + depends_on: + - generate 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 + when: + branch: + - master + event: + - push - 2.93-cpu-ubuntu18.04: - image: plugins/docker +- name: 2.93-cpu-ubuntu18.04 + pull: if-not-exists + image: plugins/docker + settings: + depends_on: + - generate 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 + when: + branch: + - master + event: + - push - 2.93-gpu-ubuntu18.04: - image: plugins/docker +- name: 2.93-gpu-ubuntu18.04 + pull: if-not-exists + image: plugins/docker + settings: + depends_on: + - generate 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 + when: + branch: + - master + event: + - push - 3.0-cpu-ubuntu18.04: - image: plugins/docker +- name: 3.0-cpu-ubuntu18.04 + pull: if-not-exists + image: plugins/docker + settings: + depends_on: + - generate 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 + when: + branch: + - master + event: + - push + +- name: 3.0-gpu-ubuntu18.04 + pull: if-not-exists + image: plugins/docker + settings: + depends_on: + - generate + 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 + when: + branch: + - master + event: + - push - notify: - image: plugins/slack - username: Blender Docker Bot - icon_emoji: ":blender-3d:" +- name: notify + pull: if-not-exists + image: plugins/slack + settings: channel: rd-bots + 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 + 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 + when: + branch: + - master + event: + - push + status: + - success + - failure \ No newline at end of file From 9deb38752a66058da426528bc7b42ee35ce1ea4d Mon Sep 17 00:00:00 2001 From: Shane Moore Date: Mon, 3 Jan 2022 15:30:08 -0500 Subject: [PATCH 2/5] Split each job into a pipeline, run in parallel --- .drone.yml | 461 ++++++++++++++++++++++++++++++++++++++++------------- 1 file changed, 353 insertions(+), 108 deletions(-) diff --git a/.drone.yml b/.drone.yml index 93a84ad..24cb012 100644 --- a/.drone.yml +++ b/.drone.yml @@ -1,6 +1,6 @@ --- kind: pipeline -name: default +name: 2.80-cpu-ubuntu18.04 platform: os: linux @@ -12,16 +12,11 @@ steps: image: python:3.8-slim commands: - python3 generate.py - when: - event: - - push - name: 2.80-cpu-ubuntu18.04 pull: if-not-exists image: plugins/docker settings: - depends_on: - - generate dockerfile: dist/2.80-cpu-ubuntu18.04/Dockerfile password: from_secret: docker_password @@ -29,18 +24,32 @@ steps: tags: 2.80-cpu-ubuntu18.04 username: from_secret: docker_username - when: - branch: + +trigger: + branch: - master - event: + 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: - depends_on: - - generate dockerfile: dist/2.80-gpu-ubuntu18.04/Dockerfile password: from_secret: docker_password @@ -48,18 +57,32 @@ steps: tags: 2.80-gpu-ubuntu18.04 username: from_secret: docker_username - when: - branch: + +trigger: + branch: - master - event: + 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: - depends_on: - - generate dockerfile: dist/2.81-cpu-ubuntu18.04/Dockerfile password: from_secret: docker_password @@ -67,18 +90,32 @@ steps: tags: 2.81-cpu-ubuntu18.04 username: from_secret: docker_username - when: - branch: + +trigger: + branch: - master - event: + 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: - depends_on: - - generate dockerfile: dist/2.81-gpu-ubuntu18.04/Dockerfile password: from_secret: docker_password @@ -86,18 +123,32 @@ steps: tags: 2.81-gpu-ubuntu18.04 username: from_secret: docker_username - when: - branch: + +trigger: + branch: - master - event: + 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: - depends_on: - - generate dockerfile: dist/2.82-cpu-ubuntu18.04/Dockerfile password: from_secret: docker_password @@ -105,18 +156,32 @@ steps: tags: 2.82-cpu-ubuntu18.04 username: from_secret: docker_username - when: - branch: + +trigger: + branch: - master - event: + 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: - depends_on: - - generate dockerfile: dist/2.82-gpu-ubuntu18.04/Dockerfile password: from_secret: docker_password @@ -124,18 +189,32 @@ steps: tags: 2.82-gpu-ubuntu18.04 username: from_secret: docker_username - when: - branch: + +trigger: + branch: - master - event: + 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: - depends_on: - - generate dockerfile: dist/2.83-cpu-ubuntu18.04/Dockerfile password: from_secret: docker_password @@ -143,18 +222,32 @@ steps: tags: 2.83-cpu-ubuntu18.04 username: from_secret: docker_username - when: - branch: + +trigger: + branch: - master - event: + 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: - depends_on: - - generate dockerfile: dist/2.83-gpu-ubuntu18.04/Dockerfile password: from_secret: docker_password @@ -162,18 +255,32 @@ steps: tags: 2.83-gpu-ubuntu18.04 username: from_secret: docker_username - when: - branch: + +trigger: + branch: - master - event: + 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: - depends_on: - - generate dockerfile: dist/2.90-cpu-ubuntu18.04/Dockerfile password: from_secret: docker_password @@ -181,18 +288,32 @@ steps: tags: 2.90-cpu-ubuntu18.04 username: from_secret: docker_username - when: - branch: + +trigger: + branch: - master - event: + 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: - depends_on: - - generate dockerfile: dist/2.90-gpu-ubuntu18.04/Dockerfile password: from_secret: docker_password @@ -200,18 +321,32 @@ steps: tags: 2.90-gpu-ubuntu18.04 username: from_secret: docker_username - when: - branch: + +trigger: + branch: - master - event: + 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: - depends_on: - - generate dockerfile: dist/2.91-cpu-ubuntu18.04/Dockerfile password: from_secret: docker_password @@ -219,18 +354,32 @@ steps: tags: 2.91-cpu-ubuntu18.04 username: from_secret: docker_username - when: - branch: + +trigger: + branch: - master - event: + 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: - depends_on: - - generate dockerfile: dist/2.91-gpu-ubuntu18.04/Dockerfile password: from_secret: docker_password @@ -238,18 +387,32 @@ steps: tags: 2.91-gpu-ubuntu18.04 username: from_secret: docker_username - when: - branch: + +trigger: + branch: - master - event: + 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: - depends_on: - - generate dockerfile: dist/2.92-cpu-ubuntu18.04/Dockerfile password: from_secret: docker_password @@ -257,18 +420,32 @@ steps: tags: 2.92-cpu-ubuntu18.04 username: from_secret: docker_username - when: - branch: + +trigger: + branch: - master - event: + 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: - depends_on: - - generate dockerfile: dist/2.92-gpu-ubuntu18.04/Dockerfile password: from_secret: docker_password @@ -276,18 +453,32 @@ steps: tags: 2.92-gpu-ubuntu18.04 username: from_secret: docker_username - when: - branch: + +trigger: + branch: - master - event: + 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: - depends_on: - - generate dockerfile: dist/2.93-cpu-ubuntu18.04/Dockerfile password: from_secret: docker_password @@ -295,18 +486,32 @@ steps: tags: 2.93-cpu-ubuntu18.04 username: from_secret: docker_username - when: - branch: + +trigger: + branch: - master - event: + 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: - depends_on: - - generate dockerfile: dist/2.93-gpu-ubuntu18.04/Dockerfile password: from_secret: docker_password @@ -314,18 +519,32 @@ steps: tags: 2.93-gpu-ubuntu18.04 username: from_secret: docker_username - when: - branch: + +trigger: + branch: - master - event: + 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: - depends_on: - - generate dockerfile: dist/3.0-cpu-ubuntu18.04/Dockerfile password: from_secret: docker_password @@ -333,18 +552,32 @@ steps: tags: 3.0-cpu-ubuntu18.04 username: from_secret: docker_username - when: - branch: + +trigger: + branch: - master - event: + 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: - depends_on: - - generate dockerfile: dist/3.0-gpu-ubuntu18.04/Dockerfile password: from_secret: docker_password @@ -354,18 +587,34 @@ steps: - latest username: from_secret: docker_username - when: - branch: + +trigger: + branch: - master - event: + 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 - depends_on: + 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 + +depends_on: - 2.80-cpu-ubuntu18.04 - 2.80-gpu-ubuntu18.04 - 2.81-cpu-ubuntu18.04 @@ -384,16 +633,12 @@ steps: - 2.93-cpu-ubuntu18.04 - 3.0-gpu-ubuntu18.04 - 3.0-cpu-ubuntu18.04 - 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 - when: - branch: - - master - event: - - push - status: - - success - - failure \ No newline at end of file + +trigger: + branch: + - master + event: + - push + status: + - success + - failure From b13a754a49a5a5d1f1a7ad346ebea42ea156cb7a Mon Sep 17 00:00:00 2001 From: Shane Moore Date: Mon, 3 Jan 2022 20:41:16 +0000 Subject: [PATCH 3/5] Temporarily run pipelines on feature branch --- .drone.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.drone.yml b/.drone.yml index 24cb012..2f1b102 100644 --- a/.drone.yml +++ b/.drone.yml @@ -27,7 +27,7 @@ steps: trigger: branch: - - master + - feature/drone-parallel-build event: - push @@ -60,7 +60,7 @@ steps: trigger: branch: - - master + - feature/drone-parallel-build event: - push From 9eea18fceabf4cb22a1d2aaece33045b2d6a5765 Mon Sep 17 00:00:00 2001 From: Shane Moore Date: Mon, 3 Jan 2022 20:47:36 +0000 Subject: [PATCH 4/5] Temporarily run more pipelines on feature branch --- .drone.yml | 40 ++++++++++++++++++++-------------------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/.drone.yml b/.drone.yml index 2f1b102..c5621f8 100644 --- a/.drone.yml +++ b/.drone.yml @@ -93,7 +93,7 @@ steps: trigger: branch: - - master + - feature/drone-parallel-build event: - push @@ -126,7 +126,7 @@ steps: trigger: branch: - - master + - feature/drone-parallel-build event: - push @@ -615,24 +615,24 @@ steps: from_secret: slack_webhook 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 + - 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: From 9d9c381148cc5e44e1a9e3294e56e9e066e181d0 Mon Sep 17 00:00:00 2001 From: Shane Moore Date: Mon, 3 Jan 2022 20:54:34 +0000 Subject: [PATCH 5/5] Revert triggers back to master --- .drone.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.drone.yml b/.drone.yml index c5621f8..840925b 100644 --- a/.drone.yml +++ b/.drone.yml @@ -27,7 +27,7 @@ steps: trigger: branch: - - feature/drone-parallel-build + - master event: - push @@ -60,7 +60,7 @@ steps: trigger: branch: - - feature/drone-parallel-build + - master event: - push @@ -93,7 +93,7 @@ steps: trigger: branch: - - feature/drone-parallel-build + - master event: - push @@ -126,7 +126,7 @@ steps: trigger: branch: - - feature/drone-parallel-build + - master event: - push