CI/CD: Try new publication mechanism

This commit is contained in:
nemunaire 2022-02-27 12:09:01 +01:00
parent 6812cfff58
commit 805301a7ce

View File

@ -86,7 +86,7 @@ platform:
arch: amd64
steps:
- name: render subject
- name: compose subject
image: pandoc/latex:2.17.1
commands:
- sed -i s/v3.12/v3.14/ /etc/apk/repositories
@ -98,11 +98,39 @@ steps:
- tar xf /tmp/FantasqueSansMono-Normal.tar.gz -C /usr/share/fonts/fantasque-sans-mono OTF/ TTF/ --strip-component=1
- mkdir dist
- make -C tutorial/ansible
- mv tutorial/ansible/tutorial.pdf dist/tutorial-2.pdf
- mv tutorial/ansible/tutorial.pdf dist/tutorial-2-${DRONE_TAG##srs20??-tutorial2-}.pdf
- name: deploy subject
image: appleboy/drone-scp
settings:
tar_tmp_path: /tmp/
host: adlin.nemunai.re
target: /var/www/nemunai.re/adlin/subjects/
source: dist/*
strip_components: 1
username:
from_secret: ssh_username
key:
from_secret: deploy_key
port:
from_secret: ssh_port
- name: link to latest subject
image: appleboy/drone-ssh
settings:
host: adlin.nemunai.re
username:
from_secret: ssh_username
key:
from_secret: deploy_key
port:
from_secret: ssh_port
script:
- ln -sf /var/www/nemunai.re/adlin/subjects/tutorial-2-${DRONE_TAG##srs20??-tutorial2-}.pdf /var/www/nemunai.re/adlin/tutorial-2.pdf
trigger:
ref:
- refs/tags/tutorial2-*
- refs/tags/srs20??-tutorial2-*
---
kind: pipeline
type: docker