This repository has been archived by the owner on Jan 19, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.drone.yml
43 lines (39 loc) · 1.46 KB
/
.drone.yml
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
kind: pipeline
name: authelia-arm
platform:
os: linux
architecture: arm
variant: 7
steps:
- name: clone-authelia
image: drone/git
commands:
- git clone https://github.com/clems4ever/authelia
- name: build-client-server
image: arm32v7/node:8.15-slim
# environment:
# npm_config_loglevel: silent #- npm_config_loglevel=info npm install --production # loglevel can be silent, warn, info, verbose, silly
commands:
- cd authelia
- apt update
- apt install -y --no-install-recommends make g++ python
- cd client
- npm install
- CI=false npm run build # should really fix the warnings so CI=false isnt needed
- cd ..
- sed -i '/chromedriver/d' package.json # Remove chromedriver as it's only used for tests
- npm install
- node_modules/.bin/tslint -c server/tslint.json -p server/tsconfig.json
- node_modules/.bin/tsc -p server/tsconfig.json
- mkdir -p dist/server/src/resources
- cp server/src/resources/** dist/server/src/resources/
- node_modules/.bin/typescript-json-schema -o server/src/lib/configuration/Configuration.schema.json --strictNullChecks --required server/tsconfig.json Configuration
- cp server/src/lib/configuration/Configuration.schema.json dist/server/src/lib/configuration
- mv client/build dist/server/src/public_html
- name: publish-authelia
image: docker-registry:5000/drone-plugins/kaniko:latest
settings:
registry: docker.artificialcreature.com
repo: clems4ever/authelia
tags: latest
log: info