Files
fb-admin/.drone.yml
T
2019-08-03 20:28:36 +02:00

81 lines
1.3 KiB
YAML

kind: pipeline
name: default
steps:
- name: restore cache
image: drillster/drone-volume-cache
settings:
restore: true
mount:
- ./node_modules
volumes:
- name: cache
path: /cache
- name: npm install
image: node:12
commands:
- npm install
- name: npm run build
image: node:12
commands:
- npm run build
- name: rebuild cache
image: drillster/drone-volume-cache
settings:
rebuild: true
mount:
- ./node_modules
volumes:
- name: cache
path: /cache
- name: deliver container
image: plugins/docker
settings:
registry: registry.frontblock.me
insecure: true
repo: registry.frontblock.me/vendor/admin
tags: ${DRONE_BUILD_CREATED}
- name: archive plugin files
image: alpine:3.9
commands:
- apk add --no-cache zip
- zip -9r ./plugin.zip *.js
when:
event:
- tag
- name: release plugin archive
image: plugins/gitea-release
settings:
base_url: https://gitea.frontblock.me
api_key:
from_secret: release_token
files:
- plugin.zip
checksum:
- md5
when:
event:
- tag
- name: release container
image: plugins/docker
settings:
repo: frontblockme/admin
tags: ${DRONE_TAG}
username: frontblockme
password:
from_secret: docker_password
when:
event:
- tag
volumes:
- name: cache
host:
path: /tmp