CI/CD: Try new publication mechanism
This commit is contained in:
parent
6812cfff58
commit
805301a7ce
34
.drone.yml
34
.drone.yml
@ -86,7 +86,7 @@ platform:
|
|||||||
arch: amd64
|
arch: amd64
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: render subject
|
- name: compose subject
|
||||||
image: pandoc/latex:2.17.1
|
image: pandoc/latex:2.17.1
|
||||||
commands:
|
commands:
|
||||||
- sed -i s/v3.12/v3.14/ /etc/apk/repositories
|
- 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
|
- tar xf /tmp/FantasqueSansMono-Normal.tar.gz -C /usr/share/fonts/fantasque-sans-mono OTF/ TTF/ --strip-component=1
|
||||||
- mkdir dist
|
- mkdir dist
|
||||||
- make -C tutorial/ansible
|
- 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:
|
trigger:
|
||||||
ref:
|
ref:
|
||||||
- refs/tags/tutorial2-*
|
- refs/tags/srs20??-tutorial2-*
|
||||||
---
|
---
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
type: docker
|
type: docker
|
||||||
|
Reference in New Issue
Block a user