2020-06-18 08:42:29 +00:00
|
|
|
# This file is a template, and might need editing before it works on your project.
|
|
|
|
# Official framework image. Look for the different tagged releases at:
|
|
|
|
# https://hub.docker.com/r/library/node/tags/
|
|
|
|
image: node:latest
|
|
|
|
|
|
|
|
stages:
|
|
|
|
- prepare
|
|
|
|
- package
|
|
|
|
|
|
|
|
cache:
|
|
|
|
paths:
|
|
|
|
- node_modules/
|
|
|
|
|
|
|
|
prepare:
|
|
|
|
stage: prepare
|
|
|
|
script:
|
|
|
|
- npm install
|
|
|
|
- npm audit
|
|
|
|
|
|
|
|
package:
|
|
|
|
stage: package
|
|
|
|
script:
|
2020-06-18 09:03:41 +00:00
|
|
|
- apt-get update
|
|
|
|
- apt-get install -y zstd
|
2020-06-18 08:42:29 +00:00
|
|
|
- npm -g i pkg
|
|
|
|
- pkg . --public
|
2020-06-18 09:08:39 +00:00
|
|
|
- zstd -19 live-translator-win.exe -o live-translator-win.exe.zst
|
|
|
|
- zstd -19 live-translator-linux -o live-translator-linux.zst
|
|
|
|
- zstd -19 live-translator-macos -o live-translator-macos.zst
|
2020-06-18 08:42:29 +00:00
|
|
|
artifacts:
|
|
|
|
paths:
|
|
|
|
- live-translator-win.exe.zst
|
|
|
|
- live-translator-linux.zst
|
|
|
|
- live-translator-macos.zst
|