standard/asset_drone.js

31 lines
678 B
JavaScript
Raw Normal View History

2020-07-09 21:10:20 +02:00
/*
* Copyright (C) Sapphirecode - All Rights Reserved
* This file is part of standard which is released under MIT.
* See file 'LICENSE' for full license details.
* Created by Timo Hocker <timo@scode.ovh>, May 2020
*/
'use strict';
module.exports = `kind: pipeline
name: default
steps:
- name: setup
image: node:lts-alpine
commands:
- apk add --no-cache curl
- yarn
2020-07-09 21:16:23 +02:00
- curl https://git.scode.ovh/Timo/standard/raw/branch/master/ci.js > ci.js
2020-07-09 21:10:20 +02:00
- name: build
image: node:lts-alpine
2020-07-09 21:39:02 +02:00
environment:
TOKEN:
from_secret: npm_token
2020-07-09 21:10:20 +02:00
commands:
2020-07-09 21:39:02 +02:00
- echo "$TOKEN" > ~/.npmrc
2020-07-09 21:16:23 +02:00
- npm i -g typescript
2020-07-09 21:10:20 +02:00
- node ci.js
`;