23 lines
514 B
YAML
23 lines
514 B
YAML
image:
|
|
name: node:16-alpine
|
|
|
|
stages:
|
|
- test
|
|
- deploy
|
|
|
|
default:
|
|
before_script:
|
|
- apk add bash coreutils wget
|
|
- |
|
|
echo WORKSPACE_PATH=$PWD | tee ~/.librc >> /dev/null
|
|
echo CREATED_AT=1650520343 | tee -a ~/.librc >> /dev/null
|
|
echo STDLIBRC | base64 -d | tee -a ~/.librc >> /dev/null
|
|
- |
|
|
wget --header="Authorization: bearer $SNIPPET_BYPASS_TOKEN" "$ENV_JSON_FILE" -O ./env.json
|
|
- npm i
|
|
cache:
|
|
key: "deps-cache-$CI_COMMIT_BRANCH"
|
|
paths:
|
|
- node_modules/
|
|
|