reitanlage-oranienburg/.woodpecker.yml

39 lines
907 B
YAML
Raw Normal View History

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:18:23 +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:
image: bash
commands:
- apk add zip
- rm -rf .git node_modules src
- cd ..
- zip -r ro.zip reitanlage-oranienburg
- mv ro.zip /drone/reitanlage-oranienburg/reitanlage-oranienburg-${DRONE_TAG}.zip
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:
- reitanlage-oranienburg-${DRONE_TAG}.zip
title: ${DRONE_TAG}
when:
event:
- tag
2021-06-30 13:31:38 +00:00
2022-04-20 16:27:14 +00:00
#branches: main