From faef51610833a4e23979ace98d3f0f90c2f70866 Mon Sep 17 00:00:00 2001 From: Nick Slowinski Date: Sun, 2 Jul 2023 12:07:53 +0200 Subject: [PATCH] =?UTF-8?q?=E2=80=9E.drone.yml=E2=80=9C=20=C3=A4ndern?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .drone.yml | 71 +++++++++++++++++++++++++++--------------------------- 1 file changed, 36 insertions(+), 35 deletions(-) diff --git a/.drone.yml b/.drone.yml index 6fcde64..8110b78 100644 --- a/.drone.yml +++ b/.drone.yml @@ -39,9 +39,9 @@ steps: - renovate/* trigger: - event: - - push - - pull_request + event: + - push + - pull_request --- name: test @@ -55,39 +55,40 @@ platform: clone: disable: true - steps: - - name: clone - image: registry.access.redhat.com/ubi9/python-311:1-12 - volumes: - - name: cache - path: /opt/app-root/src - commands: - - mkdir ~/docs && cd ~/docs - - git clone $DRONE_REPO_LINK . - - git checkout $DRONE_COMMIT - when: - branch: - exclude: - - renovate/* - - name: build - image: registry.access.redhat.com/ubi9/python-311:1-12 - volumes: - - name: cache - path: /opt/app-root/src - commands: - - cd ~/docs - - pip install --upgrade pip - - pip install -r requirements.txt - - mkdocs build - when: - branch: - exclude: - - renovate/* +steps: +- name: clone + image: registry.access.redhat.com/ubi9/python-311:1-12 + volumes: + - name: cache + path: /opt/app-root/src + commands: + - mkdir ~/docs && cd ~/docs + - git clone $DRONE_REPO_LINK . + - git checkout $DRONE_COMMIT + when: + branch: + exclude: + - renovate/* +- name: build + image: registry.access.redhat.com/ubi9/python-311:1-12 + volumes: + - name: cache + path: /opt/app-root/src + commands: + - cd ~/docs + - pip install --upgrade pip + - pip install -r requirements.txt + - mkdocs build + when: + branch: + exclude: + - renovate/* - trigger: - event: - - push - - pull_request +trigger: + event: + - promote + target: + - production volumes: - name: cache temp: {} \ No newline at end of file