1
0
Fork 0

„.drone.yml“ ändern
Einige Prüfungen sind fehlgeschlagen
continuous-integration/drone/push Build is passing
continuous-integration/drone/promote/production Build is failing

Dieser Commit ist enthalten in:
Nick Slowinski 2023-07-02 18:32:15 +02:00 committet von Nicks Git-Service
Ursprung c80865ad1a
Commit d81f87b152
Signiert von: Nicks Git-Service
GPG-Schlüssel-ID: 71E74D538F99C01A

Datei anzeigen

@ -46,7 +46,7 @@ volumes:
- name: cache - name: cache
temp: {} temp: {}
--- ---
name: deploy name: deploy to production
kind: pipeline kind: pipeline
type: docker type: docker
@ -67,10 +67,6 @@ steps:
- mkdir ~/docs && cd ~/docs - mkdir ~/docs && cd ~/docs
- git clone $DRONE_REPO_LINK . - git clone $DRONE_REPO_LINK .
- git checkout $DRONE_COMMIT - git checkout $DRONE_COMMIT
when:
branch:
exclude:
- renovate/*
- name: build - name: build
image: registry.access.redhat.com/ubi9/python-311:1-12 image: registry.access.redhat.com/ubi9/python-311:1-12
volumes: volumes:
@ -81,10 +77,19 @@ steps:
- pip install --upgrade pip - pip install --upgrade pip
- pip install -r requirements.txt - pip install -r requirements.txt
- mkdocs build - mkdocs build
when: - name: deploy to production
branch: image: appleboy/drone-scp
exclude: volumes:
- renovate/* - 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: trigger:
event: event: