From 930788f29af3a4d5ca36a00db2d3042b6798fa30 Mon Sep 17 00:00:00 2001 From: Or Fleisher Date: Wed, 30 Jun 2021 17:10:42 -0400 Subject: [PATCH] Remove notify script and old CI config and make pipeline steps parrallel --- .drone.yml | 17 +++++++++++++++++ .travis.yml | 33 --------------------------------- notify.sh | 2 -- 3 files changed, 17 insertions(+), 35 deletions(-) delete mode 100644 .travis.yml delete mode 100644 notify.sh diff --git a/.drone.yml b/.drone.yml index d4a35ab..35b949a 100644 --- a/.drone.yml +++ b/.drone.yml @@ -6,6 +6,7 @@ pipeline: - python3 generate.py when: event: push + depends_on: [ clone ] # Build and push image by image 2.80-cpu-ubuntu18.04: @@ -20,6 +21,7 @@ pipeline: tags: 2.80-cpu-ubuntu18.04 when: event: push + depends_on: [ generate ] 2.80-gpu-ubuntu18.04: image: plugins/docker @@ -33,6 +35,7 @@ pipeline: tags: 2.80-gpu-ubuntu18.04 when: event: push + depends_on: [ generate ] 2.81-cpu-ubuntu18.04: image: plugins/docker @@ -46,6 +49,7 @@ pipeline: tags: 2.81-cpu-ubuntu18.04 when: event: push + depends_on: [ generate ] 2.81-gpu-ubuntu18.04: image: plugins/docker @@ -59,6 +63,7 @@ pipeline: tags: 2.81-gpu-ubuntu18.04 when: event: push + depends_on: [ generate ] 2.82-cpu-ubuntu18.04: image: plugins/docker @@ -72,6 +77,7 @@ pipeline: tags: 2.82-cpu-ubuntu18.04 when: event: push + depends_on: [ generate ] 2.82-gpu-ubuntu18.04: image: plugins/docker @@ -85,6 +91,7 @@ pipeline: tags: 2.82-gpu-ubuntu18.04 when: event: push + depends_on: [ generate ] 2.83-cpu-ubuntu18.04: image: plugins/docker @@ -98,6 +105,7 @@ pipeline: tags: 2.83-cpu-ubuntu18.04 when: event: push + depends_on: [ generate ] 2.83-gpu-ubuntu18.04: image: plugins/docker @@ -111,6 +119,7 @@ pipeline: tags: 2.83-gpu-ubuntu18.04 when: event: push + depends_on: [ generate ] 2.90-cpu-ubuntu18.04: image: plugins/docker @@ -124,6 +133,7 @@ pipeline: tags: 2.90-cpu-ubuntu18.04 when: event: push + depends_on: [ generate ] 2.90-gpu-ubuntu18.04: image: plugins/docker @@ -137,6 +147,7 @@ pipeline: tags: 2.90-gpu-ubuntu18.04 when: event: push + depends_on: [ generate ] 2.91-cpu-ubuntu18.04: image: plugins/docker @@ -150,6 +161,7 @@ pipeline: tags: 2.91-cpu-ubuntu18.04 when: event: push + depends_on: [ generate ] 2.91-gpu-ubuntu18.04: image: plugins/docker @@ -163,6 +175,7 @@ pipeline: tags: 2.91-gpu-ubuntu18.04 when: event: push + depends_on: [ generate ] 2.92-cpu-ubuntu18.04: image: plugins/docker @@ -176,6 +189,7 @@ pipeline: tags: 2.92-cpu-ubuntu18.04 when: event: push + depends_on: [ generate ] 2.92-gpu-ubuntu18.04: image: plugins/docker @@ -189,6 +203,7 @@ pipeline: tags: 2.92-gpu-ubuntu18.04 when: event: push + depends_on: [ generate ] 2.93-cpu-ubuntu18.04: image: plugins/docker @@ -202,6 +217,7 @@ pipeline: tags: 2.93-cpu-ubuntu18.04 when: event: push + depends_on: [ generate ] 2.93-gpu-ubuntu18.04: image: plugins/docker @@ -217,6 +233,7 @@ pipeline: - latest when: event: push + depends_on: [ generate ] notify: image: plugins/slack diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 18336bb..0000000 --- a/.travis.yml +++ /dev/null @@ -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 \ No newline at end of file diff --git a/notify.sh b/notify.sh deleted file mode 100644 index 7654da0..0000000 --- a/notify.sh +++ /dev/null @@ -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} \ No newline at end of file