Add .drone.yml
This commit is contained in:
parent
2f0f84b015
commit
22b95341dc
1 changed files with 42 additions and 0 deletions
42
.drone.yml
Normal file
42
.drone.yml
Normal file
|
@ -0,0 +1,42 @@
|
||||||
|
kind: pipeline
|
||||||
|
name: default
|
||||||
|
|
||||||
|
workspace:
|
||||||
|
path: /drone/reitanlage-oranienburg
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: build npm
|
||||||
|
image: node:16.0.0
|
||||||
|
pull: always
|
||||||
|
commands:
|
||||||
|
- npm install
|
||||||
|
- npx mix install --production
|
||||||
|
|
||||||
|
- name: prepare zip
|
||||||
|
image: bash
|
||||||
|
pull: always
|
||||||
|
commands:
|
||||||
|
- apk add zip
|
||||||
|
- cd /drone/
|
||||||
|
- rm -r reitanlage-oranienburg/src reitanlage-oranienburg/node_modules
|
||||||
|
- zip -r ro.zip reitanlage-oranienburg
|
||||||
|
- mv ro.zip /drone/reitanlage-oranienburg/reitanlage-oranienburg-${DRONE_TAG}.zip
|
||||||
|
|
||||||
|
- name: gitea release
|
||||||
|
image: plugins/gitea-release
|
||||||
|
settings:
|
||||||
|
api_key:
|
||||||
|
from_secret: gitea_token
|
||||||
|
base_url: https://git.serguzim.me
|
||||||
|
files:
|
||||||
|
- reitanlage-oranienburg-${DRONE_TAG}.zip
|
||||||
|
title: ${DRONE_TAG}
|
||||||
|
when:
|
||||||
|
event:
|
||||||
|
- tag
|
||||||
|
|
||||||
|
trigger:
|
||||||
|
ref:
|
||||||
|
include:
|
||||||
|
- refs/tags/**
|
||||||
|
- refs/heads/drone-test
|
Loading…
Reference in a new issue