cl/.drone.yml
2022-02-06 14:16:41 -05:00

66 lines
1.4 KiB
YAML

kind: pipeline
name: default
steps:
- name: build
image: alpine:3.15.0
environment:
SSH_KEY:
from_secret: SSH_KEY
commands:
- export SHELL=/bin/bash # hack custom shell
- apk update
- apk add musl-locales openjdk11 make py3-virtualenv git openssh
- export LANG=es_ES.UTF-8 LANGUAGE=es_ES
#- sh devscripts/comments.bash # import comments CL
- virtualenv -p python3 venv
- source venv/bin/activate
- pip install -r requirements.txt
- (cd cl-theme/ && make compile)
- cp -v Makefile.example Makefile
- make validate
#- make publish
#- 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]