From d81f87b15244a423d8c13375f2e8bb18bbcd3b85 Mon Sep 17 00:00:00 2001 From: Nick Slowinski Date: Sun, 2 Jul 2023 18:32:15 +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 | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/.drone.yml b/.drone.yml index 71a3348..44cb411 100644 --- a/.drone.yml +++ b/.drone.yml @@ -46,7 +46,7 @@ volumes: - name: cache temp: {} --- -name: deploy +name: deploy to production kind: pipeline type: docker @@ -67,10 +67,6 @@ steps: - 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: @@ -81,10 +77,19 @@ steps: - pip install --upgrade pip - pip install -r requirements.txt - mkdocs build - when: - branch: - exclude: - - renovate/* +- name: deploy to production + image: appleboy/drone-scp + volumes: + - name: cache + path: /opt/app-root/src + settings: + host: helene.nick-slowinski.de + username: drone_nick-slowinski_de-docs + key: + from_secret: ssh_private_key-drone_nick-slowinski_de-docs + target: /var/www/nick-slowinski.de/docs/production + source: /opt/app-root/src/docs/site + overwrite: true trigger: event: