diff --git a/.drone.yml b/.drone.yml index fee5103..19a18ae 100644 --- a/.drone.yml +++ b/.drone.yml @@ -48,6 +48,9 @@ kind: pipeline type: docker name: dry-run-amd64 +depends_on: +- linter + platform: os: linux arch: amd64 @@ -81,9 +84,6 @@ steps: - changed - failure -depends_on: -- linter - trigger: branch: exclude: @@ -97,6 +97,9 @@ kind: pipeline type: docker name: dry-run-arm-v7 +depends_on: +- linter + platform: os: linux arch: arm @@ -130,9 +133,6 @@ steps: - changed - failure -depends_on: -- linter - trigger: branch: exclude: @@ -146,6 +146,9 @@ kind: pipeline type: docker name: dry-run-arm64-v8 +depends_on: +- linter + platform: os: linux arch: arm64 @@ -179,9 +182,6 @@ steps: - changed - failure -depends_on: -- linter - trigger: branch: exclude: @@ -195,6 +195,9 @@ kind: pipeline type: docker name: latest-amd64 +depends_on: +- linter + platform: os: linux arch: amd64 @@ -231,9 +234,6 @@ steps: - changed - failure -depends_on: -- linter - trigger: branch: - master @@ -248,6 +248,9 @@ kind: pipeline type: docker name: latest-arm-v7 +depends_on: +- linter + platform: os: linux arch: arm @@ -284,9 +287,6 @@ steps: - changed - failure -depends_on: -- linter - trigger: branch: - master @@ -301,6 +301,9 @@ kind: pipeline type: docker name: latest-arm64-v8 +depends_on: +- linter + platform: os: linux arch: arm64 @@ -337,9 +340,6 @@ steps: - changed - failure -depends_on: -- linter - trigger: branch: - master @@ -354,6 +354,11 @@ kind: pipeline type: kubernetes name: latest-manifest +depends_on: +- latest-amd64 +- latest-arm-v7 +- latest-arm64-v8 + steps: - name: build-manifest image: docker.io/plugins/manifest:latest @@ -384,11 +389,6 @@ steps: - changed - failure -depends_on: -- latest-amd64 -- latest-arm-v7 -- latest-arm64-v8 - trigger: branch: - master @@ -550,6 +550,11 @@ kind: pipeline type: kubernetes name: tagged-manifest +depends_on: +- tagged-amd64 +- tagged-arm-v7 +- tagged-arm64-v8 + steps: - name: build-manifest image: docker.io/plugins/manifest:latest @@ -584,70 +589,8 @@ steps: - changed - failure -depends_on: -- tagged-amd64 -- tagged-arm-v7 -- tagged-arm64-v8 - trigger: event: - tag repo: - volker.raschek/db-wait - ---- -kind: pipeline -type: kubernetes -name: sync - -platform: - os: linux - arch: amd64 - -steps: -- name: github - image: docker.io/appleboy/drone-git-push:latest - resources: - limits: - cpu: 50 - memory: 25M - settings: - branch: master - remote: ssh://git@github.com/volker-raschek/db-wait.git - force: true - ssh_key: - from_secret: ssh_key - -- name: email-notification - environment: - SMTP_FROM_ADDRESS: - from_secret: smtp_from_address - SMTP_FROM_NAME: - from_secret: smtp_from_name - SMTP_HOST: - from_secret: smtp_host - SMTP_USERNAME: - from_secret: smtp_username - SMTP_PASSWORD: - from_secret: smtp_password - image: docker.io/volkerraschek/drone-email:0.1.1 - resources: - limits: - cpu: 150 - memory: 150M - when: - status: - - changed - - failure - -depends_on: -- latest-manifest - -trigger: - branch: - - master - event: - - cron - - push - repo: - - volker.raschek/db-wait