reitanlage-oranienburg/.woodpecker.yml

43 lines
1 KiB
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 19:42:53 +00:00
- echo "@fortawesome:registry=https://npm.fontawesome.com/" > .npmrc
- echo "//npm.fontawesome.com/:_authToken=$${FONTAWESOME_TOKEN}" >> .npmrc
- npm install
- npm run production
when:
event:
- tag
2021-06-30 13:31:38 +00:00
2022-04-20 16:24:04 +00:00
prepare_zip:
2022-04-20 19:33:34 +00:00
image: bitnami/git
2022-04-20 16:24:04 +00:00
commands:
2022-12-05 21:08:23 +00:00
- git add -f dist/
- git commit -m 'TEMP FOR CI'
2022-04-20 19:33:34 +00:00
- git config --global --add safe.directory /src/reitanlage-oranienburg
2022-10-23 18:35:10 +00:00
- git archive --format=zip HEAD -o /src/reitanlage-oranienburg-${CI_COMMIT_TAG}.zip --prefix=reitanlage-oranienburg/
2022-04-20 19:42:53 +00:00
when:
event:
- tag
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 19:42:53 +00:00
- /src/reitanlage-oranienburg-${CI_COMMIT_TAG}.zip
title: ${CI_COMMIT_TAG}
2022-04-20 16:24:04 +00:00
when:
event:
- tag
2021-06-30 13:31:38 +00:00
2022-04-20 17:47:45 +00:00
branches: main