71 lines
1.8 KiB
YAML
71 lines
1.8 KiB
YAML
kind: pipeline
|
|
name: default
|
|
|
|
steps:
|
|
- name: build
|
|
image: rusian/hyperbola:0.4
|
|
environment:
|
|
SSH_KEY:
|
|
from_secret: SSH_KEY
|
|
commands:
|
|
- export SHELL=/bin/bash # hack custom shell
|
|
- pacman -Syu --noconfirm
|
|
- pacman -S python-virtualenv python-setuptools make git openssh --noconfirm
|
|
- sed -e 's|^# es_ES.UTF-8 UTF-8|es_ES.UTF-8 UTF-8|g' -i /etc/locale.gen
|
|
- sed -e 's|^# en_US.UTF-8 UTF-8|en_US.UTF-8 UTF-8|g' -i /etc/locale.gen
|
|
- sed -e 's|^# eo UTF-8|eo UTF-8|g' -i /etc/locale.gen
|
|
- sed -e 's|^# fr_FR.UTF-8 UTF-8|fr_FR.UTF-8 UTF-8|g' -i /etc/locale.gen
|
|
- locale-gen
|
|
- export LANG=es_ES.UTF-8 LANGUAGE=es_ES
|
|
- bash devscripts/comments.bash # import comments CL
|
|
- virtualenv -p python3 venv
|
|
- source venv/bin/activate
|
|
- rm -f /usr/bin/lsb_release # hack fix python-distro
|
|
- pip install -U -r requirements.txt
|
|
- (cd cl-theme/ && make compile)
|
|
- cp -v Makefile.example Makefile
|
|
- make publish # make validate (disable because java no is present on Hyperbola)
|
|
- make onion_publish
|
|
|
|
- name: deploy-tux
|
|
image: drillster/drone-rsync
|
|
settings:
|
|
hosts:
|
|
from_secret: TUX_SSH_HOST
|
|
port:
|
|
from_secret: TUX_SSH_PORT
|
|
key:
|
|
from_secret: SSH_KEY
|
|
user:
|
|
from_secret: TUX_SSH_USER
|
|
source: ./output_tux/*
|
|
target:
|
|
from_secret: TUX_SSH_TARGET_DIR
|
|
recursive: true
|
|
delete: true
|
|
when:
|
|
branch: [master]
|
|
event: [push]
|
|
|
|
- name: deploy-main
|
|
image: drillster/drone-rsync
|
|
settings:
|
|
hosts:
|
|
from_secret: SSH_HOST
|
|
port:
|
|
from_secret: SSH_PORT
|
|
key:
|
|
from_secret: SSH_KEY
|
|
user:
|
|
from_secret: SSH_USER
|
|
source: ./output/*
|
|
exclude:
|
|
- ./output/.htaccess
|
|
target:
|
|
from_secret: SSH_TARGET_DIR
|
|
recursive: true
|
|
delete: true
|
|
when:
|
|
branch: [master]
|
|
event: [push]
|