reitanlage-oranienburg/.woodpecker.yml
Tobias Reisinger 8667959f16
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
Fix pipeline
2022-10-23 20:35:10 +02:00

41 lines
985 B
YAML

workspace:
base: /src/
path: reitanlage-oranienburg/
pipeline:
build_npm:
image: node:16.0.0
secrets: [ fontawesome_token ]
commands:
- echo "@fortawesome:registry=https://npm.fontawesome.com/" > .npmrc
- echo "//npm.fontawesome.com/:_authToken=$${FONTAWESOME_TOKEN}" >> .npmrc
- npm install
- npm run production
when:
event:
- tag
prepare_zip:
image: bitnami/git
commands:
- git config --global --add safe.directory /src/reitanlage-oranienburg
- git archive --format=zip HEAD -o /src/reitanlage-oranienburg-${CI_COMMIT_TAG}.zip --prefix=reitanlage-oranienburg/
when:
event:
- tag
release:
image: plugins/gitea-release
settings:
api_key:
from_secret: gitea_token
base_url: https://git.serguzim.me
files:
- /src/reitanlage-oranienburg-${CI_COMMIT_TAG}.zip
title: ${CI_COMMIT_TAG}
when:
event:
- tag
branches: main