2021-06-30 13:31:38 +00:00
|
|
|
kind: pipeline
|
|
|
|
name: default
|
|
|
|
|
|
|
|
workspace:
|
|
|
|
path: /drone/reitanlage-oranienburg
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: build npm
|
|
|
|
image: node:16.0.0
|
|
|
|
pull: always
|
2021-06-30 14:09:52 +00:00
|
|
|
environment:
|
|
|
|
PASS:
|
|
|
|
from_secret: fontawesome_password
|
2021-06-30 13:31:38 +00:00
|
|
|
commands:
|
2021-07-31 00:54:29 +00:00
|
|
|
- curl -O "http://public.serguzim.me.sos-de-fra-1.exo.io/fontawesome-pro.tar.gz.enc"
|
|
|
|
- openssl enc -aes256 -pbkdf2 -out "fontawesome-pro.tar.gz" -in "fontawesome-pro.tar.gz.enc" -d -k $PASS
|
2021-07-31 00:57:17 +00:00
|
|
|
- npm install
|
2021-06-30 13:37:16 +00:00
|
|
|
- npx mix build --production
|
2021-06-30 13:31:38 +00:00
|
|
|
|
|
|
|
- name: prepare zip
|
|
|
|
image: bash
|
|
|
|
pull: always
|
|
|
|
commands:
|
|
|
|
- apk add zip
|
2021-08-07 20:15:21 +00:00
|
|
|
- rm -rf .git node_modules src
|
|
|
|
- cd ..
|
2021-06-30 13:31:38 +00:00
|
|
|
- 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
|