2021-06-30 13:31:38 +00:00
|
|
|
workspace:
|
2022-04-20 17:18:23 +00:00
|
|
|
base: /src/
|
|
|
|
path: reitanlage-oranienburg/
|
2021-06-30 13:31:38 +00:00
|
|
|
|
2022-04-20 16:24:04 +00:00
|
|
|
pipeline:
|
|
|
|
build_npm:
|
|
|
|
image: node:16.0.0
|
2022-04-20 17:18:23 +00:00
|
|
|
secrets: [ fontawesome_token ]
|
2022-04-20 16:24:04 +00:00
|
|
|
commands:
|
2022-04-20 17:18:23 +00:00
|
|
|
- pwd
|
2022-04-20 16:24:04 +00:00
|
|
|
- echo "@fortawesome:registry=https://npm.fontawesome.com/" > .npmrc
|
2022-04-20 17:47:45 +00:00
|
|
|
- echo "//npm.fontawesome.com/:_authToken=$${FONTAWESOME_TOKEN}" >> .npmrc
|
2022-04-20 16:24:04 +00:00
|
|
|
- npm install
|
|
|
|
- npm run production
|
2021-06-30 13:31:38 +00:00
|
|
|
|
2022-04-20 16:24:04 +00:00
|
|
|
prepare_zip:
|
2022-04-20 18:01:52 +00:00
|
|
|
image: ubuntu
|
2022-04-20 16:24:04 +00:00
|
|
|
commands:
|
2022-04-20 18:01:52 +00:00
|
|
|
- apt update
|
|
|
|
- apt install -y zip
|
2022-04-20 16:24:04 +00:00
|
|
|
- cd ..
|
2022-04-20 17:47:45 +00:00
|
|
|
- "zip -r reitanlage-oranienburg-${DRONE_TAG}.zip reitanlage-oranienburg/
|
|
|
|
-x .git* .npmrc .woodpecker.yml package*.json node_modules"
|
2021-06-30 13:31:38 +00:00
|
|
|
|
2022-04-20 16:24:04 +00:00
|
|
|
release:
|
|
|
|
image: plugins/gitea-release
|
|
|
|
settings:
|
|
|
|
api_key:
|
|
|
|
from_secret: gitea_token
|
|
|
|
base_url: https://git.serguzim.me
|
|
|
|
files:
|
2022-04-20 17:47:45 +00:00
|
|
|
- /src/reitanlage-oranienburg-${DRONE_TAG}.zip
|
2022-04-20 16:24:04 +00:00
|
|
|
title: ${DRONE_TAG}
|
|
|
|
when:
|
|
|
|
event:
|
|
|
|
- tag
|
2021-06-30 13:31:38 +00:00
|
|
|
|
2022-04-20 17:47:45 +00:00
|
|
|
branches: main
|