You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
1.0 KiB
37 lines
1.0 KiB
kind: pipeline
|
|
type: docker
|
|
name: default
|
|
|
|
workspace:
|
|
path: /drone/stepper
|
|
|
|
steps:
|
|
- name: composer_dev
|
|
image: composer:2.2.7
|
|
commands:
|
|
- composer install --ignore-platform-reqs --no-dev
|
|
|
|
- name: node
|
|
image: node:18.13.0-slim
|
|
commands:
|
|
- npm ci && npx mix build --production && npm run img && rm -R node_modules
|
|
|
|
- name: compress
|
|
image: php:8.1.6
|
|
commands:
|
|
- apt-get update -yqq
|
|
- apt-get install -yqq zip tar
|
|
- cd .. && tar -cvzf stepper-${DRONE_TAG}.tar.gz ./stepper && mv stepper-${DRONE_TAG}.tar.gz stepper && cd stepper
|
|
- cd .. && zip -r stepper-${DRONE_TAG}.zip ./stepper && mv stepper-${DRONE_TAG}.zip stepper && cd stepper
|
|
when:
|
|
event: tag
|
|
|
|
- name: gitea_release
|
|
image: plugins/gitea-release
|
|
settings:
|
|
api_key:
|
|
from_secret: gitea_api_key
|
|
base_url: https://git.susy-system.de
|
|
files: ./stepper-${DRONE_TAG}.*
|
|
when:
|
|
event: tag
|