Try to fix pipeline
This commit is contained in:
parent
1be15e34c5
commit
9f1a57291a
1 changed files with 34 additions and 38 deletions
|
@ -4,44 +4,40 @@ name: default
|
|||
workspace:
|
||||
path: /drone/reitanlage-oranienburg
|
||||
|
||||
steps:
|
||||
- name: build npm
|
||||
image: node:16.0.0
|
||||
pull: always
|
||||
environment:
|
||||
FA_TOKEN:
|
||||
from_secret: fontawesome_token
|
||||
commands:
|
||||
- echo "@fortawesome:registry=https://npm.fontawesome.com/" > .npmrc
|
||||
- echo "//npm.fontawesome.com/:_authToken=${FA_TOKEN}" >> .npmrc
|
||||
- npm install
|
||||
- npm run production
|
||||
pipeline:
|
||||
build_npm:
|
||||
image: node:16.0.0
|
||||
pull: always
|
||||
environment:
|
||||
FA_TOKEN:
|
||||
from_secret: fontawesome_token
|
||||
commands:
|
||||
- echo "@fortawesome:registry=https://npm.fontawesome.com/" > .npmrc
|
||||
- echo "//npm.fontawesome.com/:_authToken=${FA_TOKEN}" >> .npmrc
|
||||
- npm install
|
||||
- npm run production
|
||||
|
||||
- name: prepare zip
|
||||
image: bash
|
||||
pull: always
|
||||
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
|
||||
prepare_zip:
|
||||
image: bash
|
||||
pull: always
|
||||
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
|
||||
|
||||
- name: gitea 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
|
||||
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
|
||||
|
||||
trigger:
|
||||
ref:
|
||||
include:
|
||||
- refs/tags/**
|
||||
- refs/heads/drone-test
|
||||
branches: main
|
||||
|
|
Loading…
Reference in a new issue