Try to fix pipeline

This commit is contained in:
Tobias Reisinger 2022-04-20 18:24:04 +02:00
parent 1be15e34c5
commit 9f1a57291a
Signed by: serguzim
GPG key ID: 13AD60C237A28DFE

View file

@ -4,44 +4,40 @@ name: default
workspace: workspace:
path: /drone/reitanlage-oranienburg path: /drone/reitanlage-oranienburg
steps: pipeline:
- name: build npm build_npm:
image: node:16.0.0 image: node:16.0.0
pull: always pull: always
environment: environment:
FA_TOKEN: FA_TOKEN:
from_secret: fontawesome_token from_secret: fontawesome_token
commands: commands:
- echo "@fortawesome:registry=https://npm.fontawesome.com/" > .npmrc - echo "@fortawesome:registry=https://npm.fontawesome.com/" > .npmrc
- echo "//npm.fontawesome.com/:_authToken=${FA_TOKEN}" >> .npmrc - echo "//npm.fontawesome.com/:_authToken=${FA_TOKEN}" >> .npmrc
- npm install - npm install
- npm run production - npm run production
- name: prepare zip prepare_zip:
image: bash image: bash
pull: always pull: always
commands: commands:
- apk add zip - apk add zip
- rm -rf .git node_modules src - rm -rf .git node_modules src
- cd .. - cd ..
- zip -r ro.zip reitanlage-oranienburg - zip -r ro.zip reitanlage-oranienburg
- mv ro.zip /drone/reitanlage-oranienburg/reitanlage-oranienburg-${DRONE_TAG}.zip - mv ro.zip /drone/reitanlage-oranienburg/reitanlage-oranienburg-${DRONE_TAG}.zip
- name: gitea release release:
image: plugins/gitea-release image: plugins/gitea-release
settings: settings:
api_key: api_key:
from_secret: gitea_token from_secret: gitea_token
base_url: https://git.serguzim.me base_url: https://git.serguzim.me
files: files:
- reitanlage-oranienburg-${DRONE_TAG}.zip - reitanlage-oranienburg-${DRONE_TAG}.zip
title: ${DRONE_TAG} title: ${DRONE_TAG}
when: when:
event: event:
- tag - tag
trigger: branches: main
ref:
include:
- refs/tags/**
- refs/heads/drone-test