upd
This commit is contained in:
33
.drone.yml
Normal file
33
.drone.yml
Normal file
@@ -0,0 +1,33 @@
|
|||||||
|
kind: pipeline
|
||||||
|
type: docker
|
||||||
|
name: default
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: build-and-publish
|
||||||
|
image: node:16
|
||||||
|
environment:
|
||||||
|
GITEA_TOKEN:
|
||||||
|
from_secret: git_password
|
||||||
|
commands:
|
||||||
|
- npm install
|
||||||
|
- npm run build
|
||||||
|
# Erstellt die Authentifizierung für die Registry (URL aus package.json)
|
||||||
|
- echo "//git.familie-berner.de/api/packages/Public/npm/:_authToken=$GITEA_TOKEN" > .npmrc
|
||||||
|
- npm publish
|
||||||
|
when:
|
||||||
|
branch:
|
||||||
|
- master
|
||||||
|
|
||||||
|
---
|
||||||
|
kind: secret
|
||||||
|
name: git_username
|
||||||
|
get:
|
||||||
|
path: secret/data/gitea
|
||||||
|
name: api_access_user
|
||||||
|
|
||||||
|
---
|
||||||
|
kind: secret
|
||||||
|
name: git_password
|
||||||
|
get:
|
||||||
|
path: secret/data/gitea
|
||||||
|
name: api_access_token
|
||||||
@@ -66,6 +66,6 @@
|
|||||||
},
|
},
|
||||||
"version": "1.1.9",
|
"version": "1.1.9",
|
||||||
"publishConfig": {
|
"publishConfig": {
|
||||||
"registry": "https://git.familie-berner.de/api/packages/Open/npm/"
|
"registry": "https://git.familie-berner.de/api/packages/Public/npm/"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user