drone test

This commit is contained in:
Denys Konovalov 2023-01-27 18:53:34 +01:00
parent 50f790b65f
commit e6923d2a91

View File

@ -1,9 +1,6 @@
kind: pipeline kind: pipeline
type: docker type: docker
name: website-build name: prod
platform:
os: linux
arch: amd64
steps: steps:
- name: hugo build - name: hugo build
image: plugins/hugo image: plugins/hugo
@ -46,3 +43,59 @@ steps:
trigger: trigger:
branch: branch:
- master - master
event:
- push
---
kind: pipeline
type: docker
name: test
steps:
- name: test build
image: plugins/hugo
settings:
hugo_version: 0.110.0
validate: false
buildDrafts: true
buildFuture: true
output: test
extended: true
url: https://test.cantorgymnasium.de/
commands:
- apk add --update --no-cache tzdata
- /bin/drone-hugo
- name: deploy
image: drillster/drone-rsync
settings:
hosts: [ "cantorgymnasium.de" ]
port:
from_secret: ssh_port
user: web-push
key:
from_secret: ssh_key
source: public/
target: /opt/data/webdata/gcg-website-test/
recursive: true
delete: true
- name: notification
image: appleboy/drone-telegram
settings:
token:
from_secret: telegram_token
to:
from_secret: telegram_room_id
when:
status:
- success
- failure
trigger:
branch:
- master
event:
- push
depends_on:
- prod