Merge pull request #30 from nytimes/feature/migrate-to-drone-ci

Migrate to Drone CI ⚒️
pull/33/head
Or Fleisher 2021-06-30 17:37:12 -04:00 zatwierdzone przez GitHub
commit 9ee23b3959
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
4 zmienionych plików z 238 dodań i 36 usunięć

237
.drone.yml 100644
Wyświetl plik

@ -0,0 +1,237 @@
---
pipeline:
generate:
image: python:3.8-slim
commands:
- python3 generate.py
when:
event: push
# Build and push image by image
2.80-cpu-ubuntu18.04:
image: plugins/docker
dockerfile: dist/2.80-cpu-ubuntu18.04/Dockerfile
repo: nytimes/blender
username:
from_secret: docker_username
password:
from_secret: docker_password
tags: 2.80-cpu-ubuntu18.04
when:
event: push
branch: master
2.80-gpu-ubuntu18.04:
image: plugins/docker
dockerfile: dist/2.80-gpu-ubuntu18.04/Dockerfile
repo: nytimes/blender
username:
from_secret: docker_username
password:
from_secret: docker_password
tags: 2.80-gpu-ubuntu18.04
when:
event: push
branch: master
2.81-cpu-ubuntu18.04:
image: plugins/docker
dockerfile: dist/2.81-cpu-ubuntu18.04/Dockerfile
repo: nytimes/blender
username:
from_secret: docker_username
password:
from_secret: docker_password
tags: 2.81-cpu-ubuntu18.04
when:
event: push
branch: master
2.81-gpu-ubuntu18.04:
image: plugins/docker
dockerfile: dist/2.81-gpu-ubuntu18.04/Dockerfile
repo: nytimes/blender
username:
from_secret: docker_username
password:
from_secret: docker_password
tags: 2.81-gpu-ubuntu18.04
when:
event: push
branch: master
2.82-cpu-ubuntu18.04:
image: plugins/docker
dockerfile: dist/2.82-cpu-ubuntu18.04/Dockerfile
repo: nytimes/blender
username:
from_secret: docker_username
password:
from_secret: docker_password
tags: 2.82-cpu-ubuntu18.04
when:
event: push
branch: master
2.82-gpu-ubuntu18.04:
image: plugins/docker
dockerfile: dist/2.82-gpu-ubuntu18.04/Dockerfile
repo: nytimes/blender
username:
from_secret: docker_username
password:
from_secret: docker_password
tags: 2.82-gpu-ubuntu18.04
when:
event: push
branch: master
2.83-cpu-ubuntu18.04:
image: plugins/docker
dockerfile: dist/2.83-cpu-ubuntu18.04/Dockerfile
repo: nytimes/blender
username:
from_secret: docker_username
password:
from_secret: docker_password
tags: 2.83-cpu-ubuntu18.04
when:
event: push
branch: master
2.83-gpu-ubuntu18.04:
image: plugins/docker
dockerfile: dist/2.83-gpu-ubuntu18.04/Dockerfile
repo: nytimes/blender
username:
from_secret: docker_username
password:
from_secret: docker_password
tags: 2.83-gpu-ubuntu18.04
when:
event: push
branch: master
2.90-cpu-ubuntu18.04:
image: plugins/docker
dockerfile: dist/2.90-cpu-ubuntu18.04/Dockerfile
repo: nytimes/blender
username:
from_secret: docker_username
password:
from_secret: docker_password
tags: 2.90-cpu-ubuntu18.04
when:
event: push
branch: master
2.90-gpu-ubuntu18.04:
image: plugins/docker
dockerfile: dist/2.90-gpu-ubuntu18.04/Dockerfile
repo: nytimes/blender
username:
from_secret: docker_username
password:
from_secret: docker_password
tags: 2.90-gpu-ubuntu18.04
when:
event: push
branch: master
2.91-cpu-ubuntu18.04:
image: plugins/docker
dockerfile: dist/2.91-cpu-ubuntu18.04/Dockerfile
repo: nytimes/blender
username:
from_secret: docker_username
password:
from_secret: docker_password
tags: 2.91-cpu-ubuntu18.04
when:
event: push
branch: master
2.91-gpu-ubuntu18.04:
image: plugins/docker
dockerfile: dist/2.91-gpu-ubuntu18.04/Dockerfile
repo: nytimes/blender
username:
from_secret: docker_username
password:
from_secret: docker_password
tags: 2.91-gpu-ubuntu18.04
when:
event: push
branch: master
2.92-cpu-ubuntu18.04:
image: plugins/docker
dockerfile: dist/2.92-cpu-ubuntu18.04/Dockerfile
repo: nytimes/blender
username:
from_secret: docker_username
password:
from_secret: docker_password
tags: 2.92-cpu-ubuntu18.04
when:
event: push
branch: master
2.92-gpu-ubuntu18.04:
image: plugins/docker
dockerfile: dist/2.92-gpu-ubuntu18.04/Dockerfile
repo: nytimes/blender
username:
from_secret: docker_username
password:
from_secret: docker_password
tags: 2.92-gpu-ubuntu18.04
when:
event: push
branch: master
2.93-cpu-ubuntu18.04:
image: plugins/docker
dockerfile: dist/2.93-cpu-ubuntu18.04/Dockerfile
repo: nytimes/blender
username:
from_secret: docker_username
password:
from_secret: docker_password
tags: 2.93-cpu-ubuntu18.04
when:
event: push
branch: master
2.93-gpu-ubuntu18.04:
image: plugins/docker
dockerfile: dist/2.93-gpu-ubuntu18.04/Dockerfile
repo: nytimes/blender
username:
from_secret: docker_username
password:
from_secret: docker_password
tags:
- 2.93-gpu-ubuntu18.04
- latest
when:
event: push
branch: master
notify:
image: plugins/slack
username: Blender Docker Bot
icon_emoji: ":blender-3d:"
channel: rd-bots
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

Wyświetl plik

@ -1,33 +0,0 @@
language: python
python:
- "3.6"
sudo: required
branches:
only:
- master
services:
- docker
script:
- python3 generate.py
- python3 build.py
- if [[ $TRAVIS_PULL_REQUEST == 'false' ]]; then echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin; fi
- if [[ $TRAVIS_PULL_REQUEST == 'false' ]]; then docker push nytimes/blender:2.80-cpu-ubuntu18.04; fi
- if [[ $TRAVIS_PULL_REQUEST == 'false' ]]; then docker push nytimes/blender:2.80-gpu-ubuntu18.04; fi
- if [[ $TRAVIS_PULL_REQUEST == 'false' ]]; then docker push nytimes/blender:2.81-cpu-ubuntu18.04; fi
- if [[ $TRAVIS_PULL_REQUEST == 'false' ]]; then docker push nytimes/blender:2.81-gpu-ubuntu18.04; fi
- if [[ $TRAVIS_PULL_REQUEST == 'false' ]]; then docker push nytimes/blender:2.82-cpu-ubuntu18.04; fi
- if [[ $TRAVIS_PULL_REQUEST == 'false' ]]; then docker push nytimes/blender:2.82-gpu-ubuntu18.04; fi
- if [[ $TRAVIS_PULL_REQUEST == 'false' ]]; then docker push nytimes/blender:2.83-cpu-ubuntu18.04; fi
- if [[ $TRAVIS_PULL_REQUEST == 'false' ]]; then docker push nytimes/blender:2.83-gpu-ubuntu18.04; fi
- if [[ $TRAVIS_PULL_REQUEST == 'false' ]]; then docker push nytimes/blender:2.90-cpu-ubuntu18.04; fi
- if [[ $TRAVIS_PULL_REQUEST == 'false' ]]; then docker push nytimes/blender:2.90-gpu-ubuntu18.04; fi
- if [[ $TRAVIS_PULL_REQUEST == 'false' ]]; then docker push nytimes/blender:2.91-cpu-ubuntu18.04; fi
- if [[ $TRAVIS_PULL_REQUEST == 'false' ]]; then docker push nytimes/blender:2.91-gpu-ubuntu18.04; fi
- if [[ $TRAVIS_PULL_REQUEST == 'false' ]]; then docker push nytimes/blender:2.92-cpu-ubuntu18.04; fi
- if [[ $TRAVIS_PULL_REQUEST == 'false' ]]; then docker push nytimes/blender:2.92-gpu-ubuntu18.04; fi
- if [[ $TRAVIS_PULL_REQUEST == 'false' ]]; then docker push nytimes/blender:2.93-cpu-ubuntu18.04; fi
- if [[ $TRAVIS_PULL_REQUEST == 'false' ]]; then docker push nytimes/blender:2.93-gpu-ubuntu18.04; fi
- if [[ $TRAVIS_PULL_REQUEST == 'false' ]]; then docker tag nytimes/blender:2.93-gpu-ubuntu18.04 nytimes/blender:latest; fi
- if [[ $TRAVIS_PULL_REQUEST == 'false' ]]; then docker push nytimes/blender:latest; fi
after_success:
- bash ./notify.sh

Wyświetl plik

@ -4,7 +4,7 @@
<p>A collection of Docker containers for running Blender headless or distributed ✨</p>
<img alt="Python version" src="https://img.shields.io/badge/python-3.6-blue.svg" />
<img alt="License" src="https://img.shields.io/badge/License-Apache%202.0-yellow.svg" />
<a href="https://travis-ci.org/nytimes/rd-blender-docker"><img alt="Build status" src="https://travis-ci.org/nytimes/rd-blender-docker.svg?branch=master"></a><br/>
<a href="https://cloud.drone.io/nytimes/rd-blender-docker"><img alt="Build status" src="https://cloud.drone.io/api/badges/nytimes/rd-blender-docker/status.svg"></a><br/>
<a href="https://github.com/nytimes/rd-blender-docker/wiki">Wiki</a> 📝

Wyświetl plik

@ -1,2 +0,0 @@
#!/bin/bash
curl -X POST -H 'Content-type: application/json' --data '{"text":"Blender Docker images deployed to Docker Hub https://hub.docker.com/r/nytimes/blender", "username": "Blender Docker CI", "icon_emoji": ":blender-3d:"}' ${WEBHOOK_URL}