Add .drone.yml

This commit is contained in:
Tobias Reisinger 2021-06-30 15:31:38 +02:00
parent 2f0f84b015
commit 22b95341dc
Signed by: serguzim
GPG key ID: 13AD60C237A28DFE

42
.drone.yml Normal file
View 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