aboutsummaryrefslogtreecommitdiffstats
path: root/.drone.yml
blob: badc8633d52e42b5f2a44acf6ee6f335b3d09a36 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
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]